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 Apps / Canvas App & Dataverse...
Power Apps
Answered

Canvas App & Dataverse - How do you read email attachments?

(0) ShareShare
ReportReport
Posted on by 27

Hi Community!

 

I have a Canvas App to prepare in which I am displaying emails from Dataverse. For the current displayed email message, I also want to display a list of attachments. The attachment list should display the name of the attachment, an icon (Or a small preview) of the attachment, and have the functionality to open the attachment in the Preview window. How can I achieve this? So far I have found two partial ways:

  • Way #1 - The email message record has a FileAttachments attribute which stores some information. However, I cannot find documentation about it, nor can I find a way to open such an attachment in preview
  • Way #2 - The Attachment table (activitymimeattachment EntityType (Microsoft.Dynamics.CRM) | Microsoft Learn) stores information about attachments, but it only stores attachment metadata, not the attachment itself

 

Do you know a way to implement this requirement?

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @MaciejPokrzywin ,

     

    You are close. The attachment's content is stored in the attachment table.

    vxiaochenmsft_0-1696558769394.png

    They are base64 string.

    If you want to show the pdf attachment in canvas pdf viewer control, please try this

    vxiaochenmsft_1-1696559278177.png

     

    Best Regards,

    Wearsky

  • Maciej Pokrzywinski Profile Picture
    27 on at

    Hi @v-xiaochen-msft, thanks for your reply! One step closer to achieving my goal. Unfortunately, I'm running into another obstacle. The field: "Body" from the attachment table (ActivityMimeAttachment) is not available in the Canvas App. However, as far as I can see this only happens on my environment (On a completely new environment I managed to map what you have shown). I will already report this problem to Microsoft support. Thanks for your help!

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard