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 / File content isn't wor...
Power Automate
Answered

File content isn't working when trying to email an attachment from an entity in CDS

(0) ShareShare
ReportReport
Posted on by 359

What I'm trying to do is get an attachment from the "Notes" entity and attach that to an email I'm sending. Everything works except for the fact that the attached file can't be opened or appears to be corrupted. This happens for all file types. I tried images and documents.

 

Here is where I get the Note entity I need. I use an identifier that is sent by a PowerApp. This works and I can see the file name is the correct one.

 

Annotation 2020-06-11 113743.png

 

Then I send my email with an attachment. The attachment name is set to "File Name" and the content is set to "Document".

 

Annotation 2020-06-11 113743.png

 

I looked online and it seems like this is how it's supposed to be done? But for some reason I can't open the file sent in the email. Do I need to convert it to a different data type or something like that?

Categories:
  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Mgodby 

     

    I tried this now and it is working as expected. Couple of things to check.

     

    What's your flow trigger?

     

    What happens when you download the file from email. Is that shows as zero bytes?

     

    How users uploading the documents under notes. Using the CRM standard Notes interface?

     

    Try creating a brand new record in CRM. Go to notes and upload a document. Run the flow and check the results.

     

    Thanks

  • Verified answer
    abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Mgodby 

     

    Try this method as well. This is used when you have more than one attachment against one record. You could try this even if you have one attachment. Let me know how it goes.

     

    image.png

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 Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard