Searching for a folder with a name can be done using both the “code” and “design” method, which is given below the related description.

bpmAppService.BPMSServices.DmsService.GetFolderDefaultForAttachment(input1);
input1: Folder Name
Output: String