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

Email with options - Body formatting issue

Helloo, 

 

I am currently using an email with options activity but I am having issues with the formatting of the "body" of the email. 

 

The body is entered as such:

Body Text.JPG

 

 

 

 

 

As you can see, there is spacing between the paragraphs. 

 

When i input this text into the "Email with options" activity, my formatting dissapears and results in:

 

EmailWithOptionsText.png

 

 

 

 

 

 

 

 

 

If needed, I can also have the body in HTML formatting.

Perhaps this will solve the issue? 

 

My Flow:

Compose: - Body = 

trim(first(split(last(split(body('Html_to_text'),'Sehr geehrte/r Requisitioner,')),'melden.')))

Flow1.JPG

 

send email with options in depth.JPG

 

 

 

Thanks for your help. 

 

-A

1 ACCEPTED SOLUTION

Accepted Solutions
Hardesh15
Super User II
Super User II

@adehaan11 

 

You are using trim() in Compose-Body Action.

"The Trim function removes all spaces from a string of text except for single spaces between words. "

Remove trim and it will come as it is.

 

Thanks

Hardesh

View solution in original post

3 REPLIES 3
Hardesh15
Super User II
Super User II

@adehaan11 

 

You are using trim() in Compose-Body Action.

"The Trim function removes all spaces from a string of text except for single spaces between words. "

Remove trim and it will come as it is.

 

Thanks

Hardesh

View solution in original post

Thanks @Hardesh15 . 

 

I also realised that while trimming it removes the <br>.

 

I added these back into the "Email with options" activity and now it looks better. 

Omally
Frequent Visitor

I am very new to Automate however I have picked up items quick.  The error I am having is when I select send email with options to send a letter for approval to an external email it is all one block of text.  I type the text in the body with spaces and it send as one solid paragraph.

 

Any help would be great.

Helpful resources

Announcements
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

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (49,714)