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 / Extract email address ...
Power Automate
Unanswered

Extract email address from email body in MS Flow

(1) ShareShare
ReportReport
Posted on by 6

Dear friend,

As an administrator, I frequently receive the following email message in my inbox: I need to forward the same email to the user name, whose email address was extracted from the body of the email I got. In the following example, the forwarded email address is [marjori.mabilangan@worksmartbh.com].  

Attached a copy of the email body

thank you in advance.

EM

 

Categories:
I have the same question (0)
  • trice602 Profile Picture
    16,102 Super User 2026 Season 1 on at

    Hi @ibeldesouki ,

     

    I got this to work but you will have to run some different emails through this and see if it works for you.  If the format is highly consistent, this may help.

     

    trice602_0-1714833080505.png

     

     

    trice602_1-1714833109533.png

     

     

    Notice here, it is sent by with the space included at the end.

     

    trice602_2-1714833184619.png

     

     

    Next substring, starting position text send by output

     

    trice602_4-1714833302997.png

     

     

    Next compose.

     

    trice602_5-1714833359494.png

     

     

    Next text position from output of compose, searching to " to" with starting space.

     

    trice602_6-1714833411397.png

     

     

    Next text position from out of compose.

     

    trice602_7-1714833477015.png

     

     

    Last action, get the email.

     

    trice602_8-1714833517817.png

     

    Starting position expression:  

    add(body('Find_text_position_-_email_start'),4)
     
    Length expression: 
    sub(add(body('Find_text_position_-_email_end'),-4),body('Find_text_position_-_email_start'))
     
    Again, as I mentioned above, only you can decide if this pattern this will apply to all emails.  I have used a handful of variations of this type of flow for more than a year and if the email format is highly consistent, then this will also be highly consistent.
     
     

     

     

  • trice602 Profile Picture
    16,102 Super User 2026 Season 1 on at

    Hi @AlexEncodian ,

     

    To clarify - this is absolutely 100% free with no credit card to sign-up, if a user wants to just use it for testing and development, up to 50 times/month?

     

     

  • trice602 Profile Picture
    16,102 Super User 2026 Season 1 on at

    Thank you @AlexEncodian !  Good to know and will give it a go!

     

     

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 612

#2
Valantis Profile Picture

Valantis 344

#3
11manish Profile Picture

11manish 326

Last 30 days Overall leaderboard