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

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

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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

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!

Users online (85,939)