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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Split function to work...
Power Automate
Unanswered

Split function to working on email parsing

(0) ShareShare
ReportReport
Posted on by 114

I am working on an email parsing cloud flow. The email comes in, and I use an HTML-to-text action to remove the HTML tags.

Note, the only HTML tags in the email are <p></p> tags at the start and end of the email. If I copy the output of the HTML to text action into Word and turn on character recognition, I can see carriage returns in the content. 

FreeRangeDingo_0-1674511971507.png

 

 

 

Then, I use a compose action to hold a new line or carriage return. 

FreeRangeDingo_1-1674497041529.png

 

Next, I use another compose with the following expression to split the lines of the email on the carriage returns. 

FreeRangeDingo_2-1674497050809.png

 

 

split(outputs('Html_to_text')?['body'], outputs('New_Line'))
 
But it doesn't work. The lines all run together in one big paragraph. Any ideas????
FreeRangeDingo_3-1674497095691.png

 

Ultimately I want the original line breaks in the output.

Categories:
I have the same question (0)
  • Gopala_Krishna Profile Picture
    1,495 on at

    @FreeRangeDingo 

     

    Please follow the steps mentioned in the link for information on how to split a string based on a new line character

    https://www.enjoysharepoint.com/power-automate-split-string-into-an-array/#:~:text=Power%20automate%20split%20string%20into%20array%20line%20break,-Here%20we%20will&text=In%20the%20Power%20automate%20click,click%20on%20the%20Next%20step.&text=Select%20the%20Initialize%20variable%20action,two%20spaces%20after%20the%20split

     

    If the information shared helps you please consider giving a thumbs up and mark solution as resolved

    Please follow my website PowerCards for more information related to Power Platform
  • FreeRangeDingo Profile Picture
    114 on at

    I learned a few new expressions from that link but it didn't help me with my problem. The link you sent just showed a different way to use split with line break but the issue is that it isn't working. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 291 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 109 Super User 2026 Season 1

Last 30 days Overall leaderboard