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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Users online (1,873)