Multiple extensions for for each file activity

Hi @shivappa.katti1 ,

Welcome to UiPath Forum.

You can write a simple expression as mentioned below in assign activity and store it into an array of strings:

Directory.GetFiles(“FolderPath”).Where(function(f) f.EndsWith(“.xls”) OrElse f.EndsWith(“.pdf”) OrElse f.EndsWith(“.txt”)).ToArray

Next, you can loop through this array using foreach loop to read the intended files.

Please let us know if it answers your query.

Thanks,
Anjani