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 Automate
Answered

Parse email message

(0) ShareShare
ReportReport
Posted on by 182

I have a project where part of the project is to parse emails that come in from an internet-facing form.  The emails that are coming in are textually the same (except for the responses) so there will be specific delimited strings. 

 

For the flow I start with the trigger (incoming email based on Subject), initialize a few variables, and then do HTML-to-text.  This is some output from that step with some information redacted:

 

 

First NameJoe Last NameSchmo Address316 Pierce AveCityAnywhere Zip
Code99999Phone Number999 99-9999Email Addressthisemail@outlook.comLocation of
PropertyHere and there

 

Every email will have the delimiters of 'First Name', 'Last Name', 'Address', 'City', 'Zip', 'Phone Number', 'Email Address', 'Location of Property'.  The data between these delimiters will be variable.  I understand using substrings in programming, getting the index of the first set of data (the easiest as in this case it would be 10)...but I am wondering if there is an easier way to extract this data from the email without having to write a substring parsing statement that is a mile long.

 

Thanks for any information.

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @guyinkalamazoo 

    Take a look at the split() expression.  It will be ugly, but using a series of split expressions might be the easiest way.  The delimiter in a split expression can be a series of characters - i.e. 'First Name', 'Zip', etc..

     

     

     

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard