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
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (6,778)