Hi,
My end goal is to loop through Excel Files and run power queries for desktop (ideally I cloud like this one the cloud but until Excel Online supports Power Queries (external sources) I am stuck with Power Automate Desktop).
With PAD (one flow) with variables
opening and going through the UI to refresh some specific queries is fine.
opening a second file is fine but the UI Automation is still going to the first file:
:desktop > window[Name@="^(.*)%file_name_2%(.*)Excel$"][Process="EXCEL"] > pane[Class="EXCEL2"]:eq(0) > ....
I also tried
:desktop > [Process="EXCEL"] > pane[Class="EXCEL2"]:eq(0) >....
in both case the second file is ignored (even with %file_name_2%), it's still associated with the first file / initial file used to create the first loop.
....I don't get it, it looks like there is hidden reference somewhere.