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

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

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

kjmcintosh
Frequent Visitor

Re: Getting data for multi select list

Thanks very much, that fixed it

alexanderhing
Frequent Visitor

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

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,729)