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 / Extract Data From a Ta...
Power Automate
Suggested Answer

Extract Data From a Table in Email

(1) ShareShare
ReportReport
Posted on by 4
Hello!
 
I am trying to create an automatic flow that will extract data from a table that is pasted in the body of an email, which is received daily. The data needs to then be saved to an Excel file. The Excel file will house all the table data from these emails, creating a searchable/analyzable database over time. I'm very stuck after "when an email arrives". Thank you!
 
-Excel-lent
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,433 Super User 2025 Season 2 on at
    Hi
     
    Your next step is the HTML to Text to get the body into text.
    now use a Compose and write whatever logic you need to Parse that string output from the previous step
     
    Either grab your Excel template or Create one using one of the paid Actions etc
     
    Its really... not fair or reasonable to just write that little bit and do no research (cause the same thing is answered every day).
     
    If you want help I started you off, do that and when you get to where you can share more details etc including the Content so we can help you parse it, we can.
  • Chriddle Profile Picture
    8,443 Super User 2025 Season 2 on at
    Assuming it's an HTML table, you can check if it's valid XML and if so, use XPath to convert it to a PA array (instead of converting HTML to text).
    But as FLMike already noted: Without an example, nobody can say.
  • Excel-lent Profile Picture
    4 on at
    Thank you for your replies and guidance. My apologies for being very short on Power Automate and programming skills and understanding. 
     
    The tables received in the body of the emails in question are HTML. From what I understand, PA compose using JSON is a way to see and parse the data within the table. 
     
    I believe the PA flow will look something like this:
    1.) When an email arrives
    2.) Identify and convert table to an array
    3.) Open destination Excel file
    4.) Identify the next available row in the Excel file and deposit data
     
    Below is an example of the email received containing the table:
     
    See the below data regarding new products:
     
    Great work:
    NEW Product Table
    Department Contact Name Contact E-Mail Item Control Date/Time
    Upstairs John Smith Myemail.com XR13845 Abc123 10/19/24 19:56
    Downstairs Jane Smith Myemail.com D4873KA Def456 10/19/24 15:53

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard