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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
DerekCM
New Member

Get Data from Email

I am trying to pull the data from a daily email and the html code keeps getting truncated when I expand the body in Power Query.

The email that I am connecting to has sales data in tables within the body of the email. I was hoping that there would be a way to parse the html code in Power Query so that I just get the data from the tables in the email. Instead, when I connect to the email and expand the "htmlBody" the html is truncated and I can't do any transformation to it at all.

How can I access the information within the email from PowerQuery so that I can extract the key data elements and put them in a table?  Thanks in advance for your help! 

 

Excerpt from email (actual numbers have been redacted).

 

DerekCM_2-1701972923464.png

 

 

1 REPLY 1
Anonymous
Not applicable

Hi @DerekCM ,

Try add a custom column instead of expand columns:

 

= [Body][HtmlBody]

 

vcgaomsft_0-1702364002979.png

When expand:

vcgaomsft_1-1702364100892.png

Some data were missing.


If this doesn't work, consider posting examples and expected output.

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group



Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors