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 / .MSG Upload to SharePo...
Power Automate
Suggested Answer

.MSG Upload to SharePoint and Power Automate Extraction Capability

(0) ShareShare
ReportReport
Posted on by 4
Hello, I’m uploading a .msg file to a SharePoint folder, which then triggers a Power Automate flow. The .msg file contains the email body along with a PDF and an Excel attachments. I want to know if it’s possible to extract the .msg content uploaded to SharePoint as well as the text/data from the attached PDF and Excel files from the .msg file stored in SharePoint within the flow, and if so, what the best approach would be. Thank you.
 

 

Categories:
I have the same question (0)
  • Suggested answer
    Assisted by AI
    Bitcot Automations Profile Picture
    23 on at
    Hi @CU04022236-0

    Cloud-based approach is to use an Azure Function to parse the .msg file and then call that function from Power Automate using an HTTP action. In this solution, when a .msg file is uploaded to SharePoint and triggers the flow, the flow retrieves the file content and sends it (typically as base64) to an Azure Function endpoint. The Azure Function, written in Python using the extract_msg library, reads the Outlook message file, extracts the email subject, body, sender details, and all attachments (such as PDF and Excel files), and converts them into a structured JSON response. The function can return the email content as text and the attachments as base64-encoded files. Power Automate then receives this JSON response, processes each attachment accordingly (for example, sending the PDF to a document processing service or reading rows from the Excel file), and stores or uses the extracted data as needed. This architecture is scalable, secure, fully cloud-based, and ideal for enterprise-grade automation.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 468

#2
Haque Profile Picture

Haque 370

#3
Valantis Profile Picture

Valantis 354

Last 30 days Overall leaderboard