web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Display .eml or .msg Email Files in Business Central AL?

(5) ShareShare
ReportReport
Posted on by 29
 

Hi everyone,

 

 

 

Is there a way to display the contents of an email file (e.g., .eml or .msg) within the Business Central AL environment?

 

 

 

I’m looking for a solution that would allow users to view the content of such files (including subject, body, attachments) directly from Business Central, ideally using AL code.

 

 

 

Has anyone implemented something similar or knows if this is supported?

 

 

 

Thanks in advance!

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,057 Super User 2025 Season 2 on at
    Display .eml or .msg Email Files in Business Central AL?
    As far as I know, it is not possible, but you can try Outlook's Graph APIs, which may be able to read your content, but the file should not be able to be opened via AL.
    Hope this can give you some hints.
    Thanks.
    ZHU
  • CU15071722-0 Profile Picture
    29 on at
    Display .eml or .msg Email Files in Business Central AL?
    Thank you, , for your response.

    Are we not able to read .msg files in Business Central using MSGReader?
  • Suggested answer
    Sohail Ahmed Profile Picture
    11,126 Super User 2025 Season 2 on at
    Display .eml or .msg Email Files in Business Central AL?
    At the moment, Business Central AL doesn’t support rendering or displaying .eml or .msg files directly within the UI. There's no built-in AL support to parse or preview Outlook email file formats natively.
     
    However, a practical workaround is to store the email metadata (subject, sender, body text) in a custom table and link it to the file as a media field or external link. For full email preview, you might consider using the Microsoft Graph API to fetch and display email content from Outlook or Exchange Online.
     
    So while direct rendering of .eml/.msg files isn't possible in AL, you can build a user-friendly alternative by integrating with external services like Graph API and storing email data in structured form inside BC.
     
     
    ✅ Mark this answer as verified if it helps you.
     
     
  • Matteo Fiocco Profile Picture
    260 on at
    Display .eml or .msg Email Files in Business Central AL?

    Hey!

    Business Central doesn’t support viewing .eml or .msg files directly out of the box, but there are a couple of ways you can make it work. You can use an external service (like an Azure Function) to read and parse the email file — for example, with tools like MimeKit or Microsoft Graph. The parsed data (subject, body, attachments) can then be sent back to BC in JSON format using AL's HttpClient, and displayed in a custom page.


     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,888

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 3,386 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 2,041 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans