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

Getting data for multi select list

I'm sure this is an easy one and I will be told to RTFM.

 

When I return the values to an email from a field with multi lookup I end up with strange formating. I am doing the following

flow1.PNG

 

My email body then looks like this

 

{"01 Services":""}, {"2Hedge Ltd":""}, {"AAAm":""}, {"Abbey Capital":""}

 

How do I return just the names without strange format?

 

Thanks

 

Kevin

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Getting data for multi select list

Hi @kjmcintosh 

 

The choice and look up type columns in sharepoint carry other data like ID, Value etc. When you have multi select choice or lookup, the data is returned as an array of objects. The objects here comprise of the ID, value of the lookup or choice. (makes sense?)

 

Please take a look at the flow below:SPs1.PNG

 

SPs2.PNG

Here, tww is mu lookup column in sharepoint. To get the actual label values, you need to look for the value attribute. Now for ease of understanding, you can initialize an array variable and populate all the values from the tww column into that array and then finally join the elements in the array and send it in the email. the expression used is: 

join(variables('temo'),', ')

The variable name is temo and i have added a space after the comma to separate the array values accordingly. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

 

View solution in original post

3 REPLIES 3
Highlighted
Dual Super User III
Dual Super User III

Re: Getting data for multi select list

Hi @kjmcintosh 

 

The choice and look up type columns in sharepoint carry other data like ID, Value etc. When you have multi select choice or lookup, the data is returned as an array of objects. The objects here comprise of the ID, value of the lookup or choice. (makes sense?)

 

Please take a look at the flow below:SPs1.PNG

 

SPs2.PNG

Here, tww is mu lookup column in sharepoint. To get the actual label values, you need to look for the value attribute. Now for ease of understanding, you can initialize an array variable and populate all the values from the tww column into that array and then finally join the elements in the array and send it in the email. the expression used is: 

join(variables('temo'),', ')

The variable name is temo and i have added a space after the comma to separate the array values accordingly. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

 

View solution in original post

Highlighted
Frequent Visitor

Re: Getting data for multi select list

Thanks very much, that fixed it

Highlighted
Anonymous
Not applicable

Re: Getting data for multi select list

Hi @yashag2255,

 

I am having a similar issue:

https://powerusers.microsoft.com/t5/Building-Flows/Sharepoint-List-Multichoice-values-Email-table-re...

 

Wondering if you can have a look and advise me on how to implent a your solution in my workflow. 

 

Thanks, 

Alex

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,386)