Skip to main content

Notifications

Power Automate - General Discussion
Answered

Body of email showing HTML enters in description

(0) ShareShare
ReportReport
Posted on by 10

Hey all,

I'm making a power automate.
The automate is about assigning an email to someone and making a task in planner about this.
Everything is working exactly like I would want it to only the body of the email.
I converted the HTML to normal text but is still show some elements.( /r/n )
I added some pictures of the part from my flow wich has an impact on this.
I also tried to add a delay between create and update task but this didn't help 😞

add body to description.PNG

convert html.PNG

Html elements.PNG

  • YaBooyyy Profile Picture
    YaBooyyy 10 on at
    Re: Body of email showing HTML enters in description

    Hey I testes with compose a both but I still have the same result.
    The replace is as follows: replace(variables('EmailText'),'\r','')
    I added a screenshot of the part from my flow, still using the same email as a test
    I looked around on other post and looks like they do the same.
    Thnx again for the fast answer 🙂

    Flow with compose.PNG

     

  • Sundeep_Malik Profile Picture
    Sundeep_Malik 6,480 on at
    Re: Body of email showing HTML enters in description

    @YaBooyyy 

    Use this:

    replace(replace(variables('EmailText'),'\r',''),'\n','')

     

  • Verified answer
    Sundeep_Malik Profile Picture
    Sundeep_Malik 6,480 on at
    Re: Body of email showing HTML enters in description

    @YaBooyyy 

    So replace function, replaces any word or letter that you give with another letter/word you provide.

    So, in the above case, you can use it like this:

    take a compose:

    replace(variables('EmailText'),'\r','')

    By this we are replacing \r with no space.

    Then you can do this again for '\n'

    This can be done in 1 compose too, but I am really bad with expressions. Hehe.

  • YaBooyyy Profile Picture
    YaBooyyy 10 on at
    Re: Body of email showing HTML enters in description

    Hey,
    I have never heard of the replace operation.
    Wich one should I use and why?
    Thnx in advance 🙂 

  • YaBooyyy Profile Picture
    YaBooyyy 10 on at
    Re: Body of email showing HTML enters in description

    body example.PNG

    Hey I added a screenshot of the body.
    It is a test mail I made to test is the subject and start date and sutch works.

  • Hardesh15 Profile Picture
    Hardesh15 7,087 on at
    Re: Body of email showing HTML enters in description

    @YaBooyyy  If you want to remove new lines code please use replace() before assigning to variable.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • Sundeep_Malik Profile Picture
    Sundeep_Malik 6,480 on at
    Re: Body of email showing HTML enters in description

    Hey @YaBooyyy 

    Can you give an example or test data how your data looks like in the body that you are entering in html to text action?

    Then I might be able to give you some solution.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard