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 Pages / My powerpages is a sim...
Power Pages
Answered

My powerpages is a simple form with attachments. I am trying to use PowerAutomate to read the attachment from the dataverse table and send it to me in an email. I'm testing with a simple png image. The process works but Outlook's preview says "We couldn't open the image file." What am I doing wrong

(0) ShareShare
ReportReport
Posted on by 29

I'm getting desperate.

The form has one text field "DepartmentName". In the edit form settings I have selected the table "TheUploads" and for Attachments I have selected "Enable attachments, attachment is required, allow multiple files" Submitting the form saves the "DepartmentName" to the "TheUploads" table and puts the attachments as a Note in a Note table which has a column called "File Name" for the file name, "Note" as the unique identifier of the note, and "Document" as then contents of the note's attachment.

My PowerAutomate uses trigger "When a row is added, modified, or deleted" and I've tried various things but essential using Outlook's "Send an email (V2)" action the outlook preview reports "We couldn't open the image file." and downloading it to open it reports "It looks like we don't support this file format." I get similar messages with a word document. If I try moving the attachment into a Sharepoint document library instead of using email I get the same result.

I made a quick and dirty PowerApp to retrieve the data from notes and the file downloads fine and is readable. This means the attachment is saved in the database correctly.

So how do I use a PowerAutomate to read the file out of the DV Notes table and send it as an attachment in Outlook?

Thanks. I'm going mad on this one.

Categories:
I have the same question (0)
  • eugenevanstaden Profile Picture
    441 on at

    How are you attaching the file to the email? If you trigger the flow what results do you see in the email action?

     

    You can read the file content, this will be bsse64 and the add this to email. 

  • Verified answer
    Fubar Profile Picture
    8,375 Super User 2025 Season 2 on at

    The attachment will be stored in Dataverse as Base64, you need to convert it to binary before you use it in other places - Flow has an Expression formula called something like base64ToBinary use it to convert. 

  • dougmccaughanwo Profile Picture
    29 on at

    Success! Thank you.

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 Pages

#1
Fubar Profile Picture

Fubar 89 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard