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

Community site session details

Session Id : 2UHPN2en5gM6evYZfmWCIk
Power Automate - Building Flows
Unanswered

Split Dynamic Content to string with carriage returns

Like (0) ShareShare
ReportReport
Posted on 3 Jun 2021 10:31:56 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?

I have the same question (0)
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on 03 Jun 2021 at 12:26:02
    Re: Split Dynamic Content to string with carriage returns

    a63.jpga64.jpg

    replace(outputs('Compose'),';',json('{"NL":"\n"}')?['NL'])
  • abm abm Profile Picture
    32,506 Most Valuable Professional on 03 Jun 2021 at 12:03:15
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete