Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Help with parsing fields from an embedded table in an email

Hello PowerBi Team, 

 

I would like to do the following:

1) Upload a particular folder from a "shared mailbox" to PowerBI  (yes, I can)

   This folder will conttiune to receive emails with similar table structure as part of the email "Body"

2) Parse the fields in the embedded table in the "Body" of the email and create reports. (Unsuccessful).

 

I need help in parsing the table variables/fields:

 

Sample email:  (I would like to parse the table and pull the values of ID, Name and Group.

 

From: aaa@abc.com
Sent: Saturday, December 4, 2020 10:40:42 AM (UTC-06:00) Central Time (US & Canada)
To: xyz@abc.com
Subject:  Sample data

 

Hi,

Here is the data

ID1234
NameJoe Smith
GroupOperations

 

Thanks.

 

 

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @Anonymous 

 

access the html-body of your mail with this reference [Body][HtmlBody]

This give you the html-code of your mail. Use Html.Table to read the html-code.

This code for example gives you all table-cells

 

 Html.Table(HtmlBody,{{"AllCells", "td"}})

 

this all rows

 

 Html.Table(HtmlBody,{{"AllRows", "tr"}})

 


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

View solution in original post

2 REPLIES 2
Jimmy801
Community Champion
Community Champion

Hello @Anonymous 

 

access the html-body of your mail with this reference [Body][HtmlBody]

This give you the html-code of your mail. Use Html.Table to read the html-code.

This code for example gives you all table-cells

 

 Html.Table(HtmlBody,{{"AllCells", "td"}})

 

this all rows

 

 Html.Table(HtmlBody,{{"AllRows", "tr"}})

 


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Anonymous
Not applicable

Yes.  That helped resolve the problem.  Thanks so much!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors