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:
  • Verified answer
    ScottShearer Profile Picture
    25,331 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

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
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard