Use second "for each" with result from first "for each" - folderpath not working

I can’t grasp where i’m off with this.

I reading an Excel file with an for each row, the output is stored in a var. This variable I would like to use as a folder path to loop through the pdf’s inside the folder and move them if they fullfill my IF.

Main.xaml (12.8 KB)

Try adding .tostring in the end of the variable and give it as
Directory.GetFiles( Mappesti.tostring + “.pdf”)

I don’t understand why you are using “*.pdf” here?

1 Like

Iv’e already tried adding .ToString, but it gives me an error saying

“Cannot Assign from type ‘System.String’ to type ‘System.String’ in Assign activity”

“*.pdf” was to ensure only to look at the pdf files in the folders.

I looked again and found that Mappesti2 wasn’t set as an array. Problem solved.

Thanks HareeshMR :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.