A folder with a parent folder name and id can be searched using two methods, “code” and “design”, which is given below the related description,

bpmAppService.BPMSServices.DmsService.GetFolderByNameAndParentId(input1,input2);
input1: ID Parent Folder
input1: Folder Name
Output: String