Support > Forums > OpenBots Studio > Filtering Get Files

Filtering Get Files

MICHAEL ANNIS

  • Reporter
  • Calender Icon February 24,2022 at 2:40 AM

Can I filter Get Files to only pull .xlsx out of a folder? I know I can pull all and filter the list later. Not really looking for a workaround, just curious if it is possible to filter Get Files.

Thanks,

Mike

This forum has 314 topics, 681 replies, and was last updated 13 days ago by Support Agent

Nataly Alvarado...

  • Participant
  • Calender Icon January 12,2023 at 4:53 PM

Of course, we will integrate this feature with the Get Files commands in the upcoming release. In the meantime, please note that you can easily filter the paths output by using a C# query with the Set Variable command.

vFilteredPathList = vPathOutputList.Where(f => Path.GetExtension(f).Equals(".xlsx")).ToList()

DAVE SCHALLER

  • Participant
  • Calender Icon January 12,2023 at 7:20 AM

Hi Guys..this is a must do feature. We invariably need to get only .pdf or .csv files from a folder and need to ignore subfolders...emails often come in with random attachments in addition to the pdf we want.........

Poornima Malviya

  • Participant
  • Calender Icon February 24,2022 at 12:57 PM

Hi MICANN001,

Thankyou for your query. As of now we don�t have a search pattern to filter specific extension files in the Get Files command. As per your suggestion we would consider to add this as new feature in the future.

Appreciate your suggestion.

You are not authorized to reply, please click here to login and add your reply to this topic.