Good morning, all! I'm working on a Word report that is populated by Power Automate data. Have the template set up and am getting data through, but my question is about a Switch I'd like to implement to avoid having to switch the constituent list that's pulled each time the report is run. [In the grand scheme of things, not the biggest deal, and it's probably best NOT to go down this rabbit hole, but as I'm trying to expand my education, I'm having difficulty solving my problem.]
We have four different versions of the report – though it really is just switching the title of the report, which is handled just fine through the input of the flow – but in addition to the result of the input drop-down changing the name of the report, I'd like it to also switch which of four different constituent lists to iterate through the flow.
My problem is that the majority of my flow depends on that constituent list (and the “Apply to Each” for each person in the constituent list), and since there have to be unique names for each piece of the flow, I can't figure out how to have a switched list have a consistent name that the rest of the flow can reference. Does that make sense? Any ideas?