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 Platform Community / Forums / Power Automate / Extracting Dynamic Dat...
Power Automate
Unanswered

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

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard