Skip to main content
Community site session details

Community site session details

Session Id : 7p3zmfCCbwqCsk1DSMT/U6
Power Automate - General Discussion
Answered

Body of email showing HTML enters in description

Like (0) ShareShare
ReportReport
Posted on 20 Sep 2022 11:16:24 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
    10 on 21 Sep 2022 at 06:20:39
    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
    6,482 on 21 Sep 2022 at 06:07:29
    Re: Body of email showing HTML enters in description

    @YaBooyyy 

    Use this:

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

     

  • Verified answer
    Sundeep_Malik Profile Picture
    6,482 on 21 Sep 2022 at 05:57:20
    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
    10 on 21 Sep 2022 at 05:50:37
    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
    10 on 21 Sep 2022 at 05:49:48
    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
    7,087 Super User 2024 Season 1 on 20 Sep 2022 at 12:00:07
    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
    6,482 on 20 Sep 2022 at 11:35:38
    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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete