Help with For each file in folder

Hello,
Would really appreciated if you could help me.
i want to use a For Each File in Folder. However i have some problems with compilation. Please look at the picture below.

Please how can i make it work for “CurrentFile” and “mail” (in red color)…

Thanks,

Richch

@Ricchch

Try removing the expression from if and re add it or remove the activity and re add it…looks like a one time issue

cheers

Thanks @Anil_G

1 Like

Hi @Ricchch

Could you please change the for each “CurrentFile” as EachFile or something and map the new one where the CurrentFile given. Try this once if it not work then delete the activity and rebuilt then it will work.

Hope it helps you!!

1 Like

Quick note, you can simplify the If condition this way:

{“.csv”,“.xls”}.Contains(CurrentFile.Extension.ToLower)

1 Like

Thanks @mkankatala :handshake:

Thanks @postwick
:handshake:

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