Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Split Dynamic Content to string with carriage returns

(0) ShareShare
ReportReport
Posted on by 364

Hi all,

 

I have data in a sharepoint field that looks like this:

 

test1; test2; test3

 

I want to split that out for an email so it appears as

 

test1

test2

test3

 

I've tried using string and split, but it drops it into an array so that it appears like: ["test1", "test2", "test3"] and I can't seem to make it appear without the array characters and on different lines. Can anyone help?

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at
    Re: Split Dynamic Content to string with carriage returns

    a63.jpga64.jpg

    replace(outputs('Compose'),';',json('{"NL":"\n"}')?['NL'])
  • abm abm Profile Picture
    32,472 Most Valuable Professional on at
    Re: Split Dynamic Content to string with carriage returns

    Hi @EpicTriffid 

     

    Try the below

     

    image.png

     

    Above the first compose step press an enter key then use the replace() expression

     

    replace(outputs('Compose'),';',outputs('Compose_3'))
     
    Finally take the output to your email.
     
    Thanks

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492