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

Community site session details

Session Id : SgnBvgagD9+YHq0bFh1uJ8
Power Automate - Building Flows
Answered

Extracting Dynamic Data from Received Email

Like (0) ShareShare
ReportReport
Posted on 8 Feb 2023 02:09:04 by 107

Hello, 

 

I want to take data received from an outlook email and send those to their corresponding fields in an excel spreadsheet. 

 

I am skilled enough to be able to utilize the split function to extract the data. However, the order of the data can change, so I somehow need to be able to look up the field to make sure I am grabbing the correct data. 

 

For example, after converting the email body from HTML to text, I end up with this:

 

 

 

First name:
M.
Last name:
Smith
Email:
msmith@gmail.com
Phone number:
444#######
Job title:
Sales Manager
Company name:
Google

 

 

 

Sometimes the email field could be last, or 2nd last. This is why I can't use a split function solely to extract the fields as the data output would be inconsistent with the fields/columns I am placing them in excel. 

 

Any help would be appreciated! 

I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on 09 Feb 2023 at 05:31:58
    Re: Extracting Dynamic Data from Received Email

    Hi @Shaebert ,

     

    You could use this formula to get the email:

    vbofengmsft_1-1675920699375.png

    split(split(outputs('Compose'),concat('Email:',decodeUriComponent('%0A')))[1],decodeUriComponent('%0A'))[0]

     

     

    vbofengmsft_0-1675920665802.png

     

    Best Regards,

    Bof

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard
Loading complete