web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Remove ' ' from email body

(0) ShareShare
ReportReport
Posted on by 94

Hello,

 

I've been using the 'Email me with a list of upcoming Calendar events' template but have added an extra column for the email Body. Whenever there is nothing in the column, it displays   instead. 

 

How can I get rid of this and leave it blank? It's the same for all returns within the email body.

 

Many thanks

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @khaycock 

     

    Can you share a screenshot of the flow that you have created so far? For the email body, if you are retrieving it from another email action, you can use the HTML to text converter and pass the body to that action and further use the outputs of that action to skip the extra code snippets. 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • khaycock Profile Picture
    94 on at

    Hi @yashag2255 

     

    I'm slightly reluctant to post it all on here because it's so massive but it's exactly the same as this: https://emea.flow.microsoft.com/en-us/galleries/public/templates/99892410786e4d6888f27ae380125a80/email-me-with-a-list-of-upcoming-calendar-events

     

    Except I've added the following things to include Body:

    body 1.PNGbody 2.PNG

     

    I thought it might have something to do with this part as it replaces other similar bits of text? The expression is:

    replace(replace(body('Create_HTML_table'),'&lt;','<'),'&gt;','>')

     

    body 3.PNG

     

    All of this then goes into an email body here:

     

    body 4.PNG

     

    Does that help? Thanks for your help!

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @khaycock 

     

    You can try the below pattern. This would get rid of all the "<, / , >" as well. 

    ffewq.PNG

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • khaycock Profile Picture
    94 on at

    Do I replace the 'Compose BodyToSend' section then? Your image was based on when an email arrives

     

    body 5.PNG

  • khaycock Profile Picture
    94 on at

    Hi @yashag2255 

     

    I've gone to add it after Create HTML table, but its added an apply to each around it and now doesn't give me the option to pick the input from the HTML to text result.

     

    body 6.PNG

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @khaycock 

     

    As you are getting multiple emails, it is switching to the array. What you can do is, append the body of all emails to a string and then pass that to the html to text converter and then extract the plain text. You can also do it individually in the apply to each and then append all the plain text to a variable. 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • khaycock Profile Picture
    94 on at

    Hi @yashag2255 

     

    Sorry I'm very new to all this and have pretty much been using the template rather than trying to do any of this myself so we will have to dumb it down a bit!! 

     

    As far as I was aware, the body of all emails was already in the BodyToSend string and then the next step would be pass to HTML but it didn't work that way. Have I missed something?

     

    body 5.PNG

  • khaycock Profile Picture
    94 on at

    Hi @yashag2255 

     

    I'm still working on this as I still don't quite understand your last message. Am I meant to append the BodyToSend to a string and then pass that through the HTML to Text before the HTML table is created? 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard