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

Body of email to excel split at line breaks

I've only just started with power automate, so may be missing something really obvious.

I've got a flow working - and email with a specific string in a subject line arrives, it adds a new row to an Excel table and populates the first column with the body of the email.

I want to split the email body into different columns each time there is a line break

I've tried this: split(outputs,char(10)) - but that doesn't work.
What am I doing wrong please?

1 ACCEPTED SOLUTION

Accepted Solutions
Paulie78
Super User
Super User

Couple of things wrong:

First of all, you have not specified an output in outputs. So it needs to be something like outputs('emailBody').

Secondly, there is no char function. But you can use the expression 

decodeUriComponent('%0A')

 instead. So your whole expression would be something like:

split(outputs('emailBody'), decodeUriComponent('%0A'))

View solution in original post

2 REPLIES 2
Paulie78
Super User
Super User

Couple of things wrong:

First of all, you have not specified an output in outputs. So it needs to be something like outputs('emailBody').

Secondly, there is no char function. But you can use the expression 

decodeUriComponent('%0A')

 instead. So your whole expression would be something like:

split(outputs('emailBody'), decodeUriComponent('%0A'))

View solution in original post

Bart_Smith
Frequent Visitor

Thank you, I'll give that a go.

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,329)