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 / Remove CRLF from email...
Power Automate
Answered

Remove CRLF from email body

(0) ShareShare
ReportReport
Posted on by 10

Hi all,

Is there a way to remove the CRLF (Carriage Return Line Feed) from email body?

I want to save the email body as txt file but without the CRLF.

I tried at the beginning with uriComponent:

Capturecrlfi.PNG

But the flow failed on some emails and cannot explain why. The error received:

Captureerr.PNG

 

Also tried this, but without any luck:

Capturecrlf.PNG

 

Any ideas?

Thank you!

Categories:
  • Verified answer
    Paulie78 Profile Picture
    8,424 Moderator on at

    You are on the right lines, but a bit over complicated. Try simply putting this expression into a compose:

    replace(triggerOutputs()?['body/body'], decodeUriComponent('%0A'), '' )
  • alexmia Profile Picture
    10 on at

    Hi @Paulie78 ,

    Thanks for your quick answer! 🙂

    I used '%0D%0A' instead of '%0A' and it seems to work fine.

    I will put it into production and test it all day tomorrow and see how it works, hope I don't receive some errors.
    I'll get back to you!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 335 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard