cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Goochy13
Frequent Visitor

Sharepoint List Multi Select Column to Adaptive Card

I have a sharepoint list with a multi select column and I need to get that data and add it to an Adaptive Card as a single line of text. I can't use variabes and append each value to a string because I have an "Apply to each" loop runnning concurrently with a degree of 50, so the variables get caught each up with each other.

Goochy13_0-1606194290306.png

 

The output of the column to the adaptive card should be something like "x, y, z".

4 REPLIES 4
Expiscornovus
Dual Super User
Dual Super User

Hi @Goochy13,

 

With the following expressions you should be able to show the value of Multi select column of the first three options separately. In my example MultiChoice is the name of the multi select SharePoint column.

outputs('Get_items')?['body/value'][0]['MultiChoice'][0]['Value']
outputs('Get_items')?['body/value'][0]['MultiChoice'][1]['Value']
outputs('Get_items')?['body/value'][0]['MultiChoice'][2]['Value']

 

Just out of curiosity, is there any dynamic way of doing this?

 

And would I put that expression in a "compose" block or something else?

sudharsan1985
Solution Sage
Solution Sage

Hi @Goochy13 

Try to do the following

  • Before AdaptiveCard action, declare a variable to hold the comma-separated choice.
  • Add append variable action and select the multi-select column. Power automate will automatically wrap the append action inside Apply to each since it is the multi-select column.
  • Use the variable declared in the first step in the AdaptiveCard action.

For each item, you may have single or multiple choice selected so you have to go with the Apply to each for the choice column to pull the values dynamically. Try it out and let me know.

 

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...

I can't use variables when the outer "Apply to each" loop runs with a parallel degree of 50.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,712)