cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alexmia
Frequent Visitor

Remove CRLF from email body

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Paulie78
Super User III
Super User III

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'), '' )

View solution in original post

2 REPLIES 2
Paulie78
Super User III
Super User III

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'), '' )

View solution in original post

alexmia
Frequent Visitor

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!

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (53,263)