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

Split is not recognizing /n

Like (0) ShareShare
ReportReport
Posted on 17 Jun 2024 16:36:42 by 22

Why is my split not recognizing the new line character?

Here is the Expression: 
JimLee_0-1718641863250.png

Here are the inputs and outputs: 

JimLee_1-1718641902842.png

Clearly \n is in the text, but split is not splitting it into an array. Split works if I choose another character like * (there are bullets in the text). The text is from a variable that is being set using a HTML to Text action. 

Any ideas? 

  • Verified answer
    v-bofeng-msft Profile Picture
    on 18 Jun 2024 at 07:46:57
    Re: Split is not recognizing /n

    Hi @JimLee ,

     

    Please try:

    split(variable('EmailBody'),decodeUriComponent('%0A'))

     

    Best Regards,

    Bof

Helpful resources

Quick Links

Telen Wang – Community Spotlight

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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