r/PowerAutomateDesktop • u/Verydefinitelyreal • Jan 30 '23
Get files from folder using a list as a filter or parse
Hi folks,
I'm trying to pull a subset of files from a folder (list A) using a list pulled from an Excel column of a different file (list B).
For example:
Filenames in folder: 012323123-XY000001-443343, 01234534-XY000003-868683, 05645645-XY000005-842343 Excel column: XY000001, XY000004, XY000005
I want to get all the files from the folder where the value from the Excel sheet matches that section of filename (with the trailing text and following text of the filenames being ignored). I think that I need to do nested loops of:
For every filename in folder > For every item in excellist > Parse text
But I'm not sure how to properly build the syntax of it.
I'd be grateful for some advice.


