web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to separate differ...
Power Automate
Answered

How to separate different selections in a String variable

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I have made a flow so that documents are created from a Sharepoint list at the time an approval flow is generated in order to attach a copy to the user in their email. 

Emilealonso_0-1650398628119.png  

Emilealonso_1-1650398677749.png

 

The process is successful, but the multiple selection items of my sharepoint are not separated when transforming my variable into String of these selections (in this example it should say NNS Territorio, PTA Categoria/Cuenta, Crecimiento) since they are 3 different selections.

 

Emilealonso_2-1650398739268.png 

Is there any way to separate these selections within the variable?

 

the (basic) test html structure is as follows

Emilealonso_3-1650398933066.png

 

Please help me.

 

Regards!

 

Categories:
I have the same question (0)
  • Verified answer
    Jorge Roque Profile Picture
    Microsoft Employee on at

    Hello @Anonymous 

     

    To clarify, your flow works as intended aside from the fact that your string Variables Involucradas is being returned with values containing no spaces in between ( ) or commas (,) separating them.

     

    Resulting in: NNS TerritorioPTA Categoria/CuentaCrecimiento

    Instead of: NNS Territorio, PTA Categoria/Cuenta, Crecimiento

     

    If this string is being created through an Apply to each loop and an Append to string action I would advise you to try and apply this simple solution (Case B) (see images below).

     

     

    Case A

    jorgeroque_0-1650472972415.png

    Here the Append action only has the value or variable intended which results in the following string (consistent with your issue):

     

    jorgeroque_1-1650472972417.png

     

    Case B

    jorgeroque_2-1650472972418.png

     

    Here I plugged in a comma (,) and a space ( ) before the value Constança Rodrigues which in turn returns the string in a more organized fashion.

     

    jorgeroque_3-1650472972418.png

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @jorgeroque 

    Thanks you so much, I tried and its works perfectly.  the only problem is that a comma is output from each option from the String but I think that this is already normal since a call is only made to my values. 

     

    Thank you very much for your help, I have learned a lot about this with the help you have given me and how active the forum is.

     

    Regards

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard