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 Dynamic Dat...
Power Automate
Answered

Extracting Dynamic Data from Received Email

(0) ShareShare
ReportReport
Posted on 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! 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    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

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 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard