cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
kjmcintosh
Level: Powered On

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

 

 

2 REPLIES 2
Super User
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!

 

 

kjmcintosh
Level: Powered On

Re: Getting data for multi select list

Thanks very much, that fixed it

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 407 members 4,846 guests
Please welcome our newest community members: