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 / Extracting and splitti...
Power Automate
Unanswered

Extracting and splitting Email Subject

(0) ShareShare
ReportReport
Posted on by 4

Hi, I am receiving emails with the Subject containing: name, address, subject and reference all split by an - and the reference is encased in [].  I need to split this into separate cells within excel when running the flow.   The body of the email also contains the persons email address, but I need flows to be able to pick up where this is and put this in excel.  Also look for a phone number if there is one and enter that into excel. 

Categories:
I have the same question (0)
  • MaleselaR Profile Picture
    83 on at

    Hi @Cgasedward,

     

    If the structure of the subject doesn't change you could use the split function to separate the different fields from the subject variable generated by the trigger (When new email arrives). To extract email addresses and phone numbers from the message body I would recommend using a regular expression activity.

     

    I hope this gives some direction

  • Cgasedward Profile Picture
    4 on at

    Thank you MaleselaR, I will give it a go.  I am very new to Power Automate, so it might take me a little while.

  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @Cgasedward ,

    there're three expressions you could use to extract the information, slice(...), substring(...) and split(...), I believe this article might help you with the task.

  • Cgasedward Profile Picture
    4 on at

    Thank you so much.  I will look into that this evening.

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 67

#2
David_MA Profile Picture

David_MA 64 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard