How to get filepath based on specific keyword

Hi @Raja.G ,

You may try the following solution:
Step1: use “Excel application scope” activity to read the excel file and drag “Get workbook Sheets”. it will store all the sheets in a list of strings.

Step2: For each loop, Directory.GetFiles(“FolderPath”)
Step3: in the same container, use an if activity with the condition:
mySheets.Any(function(f) file.Contains(f))

FilePathFinder.xaml (11.7 KB)

Please refer to the attached solution and let me know if it works.

Thank you,
Anjani

1 Like