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 / Please help with my em...
Power Automate
Unanswered

Please help with my email parsing flow

(0) ShareShare
ReportReport
Posted on by 10

Hi all. I am looking for help with a particular data field I am trying to extract from a form the comes into my inbox. I have a flow that is triggered by an email coming into a particular inbox, and it is converted into plain text and then I initiate a string variable. 

 

I have had decent luck using the 

 

last(split(variables('EmailBody'), '[Where I want my string to start]'))

 

First(split(variables('OutputVariables'), '[Where I want my string to end]')) trick, but it only works part of the time for the "Comments" portion of the emailed form. There is no regularity on how the comments are entered, only that they are located between 2 target words. Is there any other way that i can try to see if it works better for this flow?

Categories:
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Leevi 

     

    Pls share your plain text output. i need this to pull out your comments section. Also share your flow screens.

     

    Thanks

    Hardesh

  • Leevi Profile Picture
    10 on at
  • Leevi Profile Picture
    10 on at

    Bold is the comments (above)

     

    My flow (below)

     

    outlook365 - html to plain text - initiate variable times 19 - add sharepoint intemoutlook365 - html to plain text - initiate variable times 19 - add sharepoint intemThese the two splits i have been using for the commentsThese the two splits i have been using for the commentsThese the two splits i have been using for the commentsThese the two splits i have been using for the comments

     

  • Leevi Profile Picture
    10 on at

    It works most of the time, and then... it doesn't.

  • Leevi Profile Picture
    10 on at

    and all the other data fields are extracted perfectly every time.

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Leevi 

     

    please provide me email body text. it is required to extract information and test the same at my end. Without email body i would not help you in this case.

     

    Thanks

    Hardesh

     

     

  • Leevi Profile Picture
    10 on at

    I decided that I will work around the parsing irregularity until I can find another solution. I don't feel comfortable sharing any of the output data currently because I think it might not be so secure to do so. Thanks for looking into this for me!!

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard