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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

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,270 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard