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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Canvas App & Dataverse...
Power Apps
Unanswered

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:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard