cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Dual Super User III
Dual Super User III

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
Dual Super User III
Dual Super User III

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

Thanks very much, that fixed it

Anonymous
Not applicable

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Top Kudoed Authors
Users online (1,993)