cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LuisGuzman98
Advocate II
Advocate II

How to concatenate a multiple select value

Hello,

 

I have a flow where I need to get into the body of an email all the values that are founded in a multi value field of a Sharepoint list. How could I get to concatenate this multiple values into just one string value?

 

image.png

I was trying to concatenate the values as in the picture above, but naive me it didn't work. I'm not able to get the outpute of the compose action out of the apply to each loop. 

 

Please help on how I could concatenate all the values in this data field. 

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hi @LuisGuzman98 

 

A couple of ways you can do this: 

1. Initialize a string variable before the apply to each action and leave the value empty. Apply to each on the multi select column and then add an action to append to string variable and then select the current item in the value here. 

 

2. Add a compose action and without using the apply to each loop in the compose action, use the expression Join('sharepointcolumnhere', ';') this will join all the choices with ';' as a delimiter.

 

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

v-alzhan-msft
Community Support
Community Support

Hi @LuisGuzman98 ,

 

Please refer to screenshot below to create the flow:

1.png

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
yashag2255
Dual Super User II
Dual Super User II

Hi @LuisGuzman98 

 

A couple of ways you can do this: 

1. Initialize a string variable before the apply to each action and leave the value empty. Apply to each on the multi select column and then add an action to append to string variable and then select the current item in the value here. 

 

2. Add a compose action and without using the apply to each loop in the compose action, use the expression Join('sharepointcolumnhere', ';') this will join all the choices with ';' as a delimiter.

 

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

v-alzhan-msft
Community Support
Community Support

Hi @LuisGuzman98 ,

 

Please refer to screenshot below to create the flow:

1.png

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thanks @v-alzhan-msft , @yashag2255 !!

 

It worked perfect!

 

 

Hello!

 

I am hoping you can assist me. I am new to Power Automate. 🙂

 

I am getting this error on the 'Compose' step when utilizing the compose and join expression option
.

"InvalidTemplate. Unable to process template language expressions in action 'Compose' inputs at line '1' and column '14831': 'The template language function 'join' expects its first parameter to be an array. The provided value is of type 'String'. Please see https://aka.ms/logicexpressions#join for usage details.'."

 

Annotation 2020-06-18 113215.png

 

@yashag2255 wrote:

Hi @LuisGuzman98 

 

A couple of ways you can do this: 

1. Initialize a string variable before the apply to each action and leave the value empty. Apply to each on the multi select column and then add an action to append to string variable and then select the current item in the value here. 

 

2. Add a compose action and without using the apply to each loop in the compose action, use the expression Join('sharepointcolumnhere', ';') this will join all the choices with ';' as a delimiter.

 

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!




What does this look like if you have more than one column that has multi select values? I am not an expert, but I am trying to concatenate multiple columns that are in SharePoint.

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (37,080)