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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract latest body of...
Power Automate
Answered

Extract latest body of email but exclude signature details

(0) ShareShare
ReportReport
Posted on by 1,151

I have a flow that add the body details to a SharePoint list comments but it is adding all the email body. I only want the latest information but exclude the the signature rubbish that makes the comments look terrible.

 

body issue 4.JPG

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @jbrines 

     

    Is your signature starts with '[cid:' (I can see from the screenshot) then use split expression to split the body of the email using '[cid:' then use the first() expression to extract the email body.

     

    first(split())

     

    Thanks

  • jbrines Profile Picture
    1,151 on at

    Hi @abm 

     

    It isn't just my signature it is other signature from external users.

     

    John.

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @jbrines 

     

    Is all the signatures starts with that tag '[cid' ?

     

    Thanks

  • jbrines Profile Picture
    1,151 on at

    Hi @abm 

     

    I have no way of telling if their signatures starts with that tag '[cid'

     

    I am using the following to get the body at the moment but brings in everything.

     

    body issue 5.JPG

     

    I have also tried this but still brings in the signature.

     

    Solved: Body preview of trigger "When a new email is recie... - Power Platform Community (microsoft.com)

  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Try the following

     

    1. Add a compose action step before HTML to text. Here map the email Body Dynamic property.

    2. Add another compose after HTML to text. Here map the output.

     

    Run the flow with multiple test values. Check the run history and see are there any common patterns you can see for the signature like a header or something. Then you could use the split() expression. If not it is not possible to extract just the body of the email.

     

    Thanks

  • jbrines Profile Picture
    1,151 on at

    @abm Many thanks for your help, with you mentioning using Compose it made me see that I was using the wrong outputs. Now I have used the correct one it is working fine.

     

    Thanks again

     

    John.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard