"Switch" question
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?
Comments
-
@Advancement Division
Don't use a switch on the constituent list actionsetup a string variable, switch and set the variable value to the list id (not name of list, you will need to find out the list id)
then constituent list action on the parameter for list, select to use custom and use the variable
there will only be one constituent list action, and all your subsequent actions that reference the constituent list will remain the same
2 -
@Alex Wong First off, forgot that I was logged in under the account that has our PA license and not me (i.e. I'm the thread's OP ?). Thanks for the reply!
I had an epiphany: Would running coalesce() on the various list values not work? For example, coalesce(outputs('SwitchList1')?['body/value'],outputs('SwitchList2')?['body/value'],outputs('SwitchList3')?['body/value'],outputs('SwitchList4')?['body/value'])2 -
@Kevin Fletcher
coalesce should work too, there's always more than one way to an end goal in Power Automate and Power BI2 -
@Kevin Fletcher
just one point,if you have multiple constituent list action, while in the Apply to Each you can use coalesce, every action thereafter will require you to “coalesce”. (for example, if in your subsequent action you are using the count property), in some situation coalsesce may not work.
1
Categories
- All Categories
- 2 Blackbaud Community Help
- High Education Program Advisory Group (HE PAG)
- BBCRM PAG Discussions
- Luminate CRM DC Users Group
- DC Luminate CRM Users Group
- Luminate PAG
- 186 bbcon®
- 1.4K Blackbaud Altru®
- 389 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 14 donorCentrics®
- 355 Blackbaud eTapestry®
- 2.4K Blackbaud Financial Edge NXT®
- 616 Blackbaud Grantmaking™
- 542 Blackbaud Education Management Solutions for Higher Education
- 3.1K Blackbaud Education Management Solutions for K-12 Schools
- 909 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 207 JustGiving® from Blackbaud®
- 6.2K Blackbaud Raiser's Edge NXT®
- 3.5K SKY Developer
- 236 ResearchPoint™
- 116 Blackbaud Tuition Management™
- 160 Organizational Best Practices
- 232 The Tap (Just for Fun)
- 30 Blackbaud Community Challenges
- Blackbaud Consultant’s Community
- 18 PowerUp Challenges
- 3 Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 Raiser's Edge NXT PowerUp Challenge: Events
- 3 Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 Raiser's Edge NXT PowerUp Challenge #1 (Query)
- 71 Blackbaud Community All-Stars Discussions
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 743 Community News
- 2.8K Jobs Board
- Community Help Blogs
- 52 Blackbaud SKY® Reporting Announcements
- Blackbaud Consultant’s Community
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
- Blackbaud Francophone Group
- Blackbaud Community™ Discussions
- Blackbaud Francophone Group