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 Automate / Issue with multiple ph...
Power Automate
Answered

Issue with multiple photos to mail

(0) ShareShare
ReportReport
Posted on by 88 Season of Giving Solutions 2025
I’m having an issue in my Power Automate flow where image attachments are not visible when they are included in the email that the flow sends out. The images are attached correctly, but I can´t see them, I get an erro
 
 
Flow Explanation
 
Trigger – “When a row is added, modified or deleted”
The flow starts when a row in Dataverse is changed.
 
Initialize variable: varAttachments
A variable meant to store all the processed attachments.
 
Get CompID
Retrieves a specific value used later in the flow.
 
List Rows
Retrieves all attachment records associated with the Dataverse row.
 
Apply to each (Loop through each attachment)
Inside the loop, the following actions occur:
GetContent: Retrieves the actual binary content of the attachment.
CreateFile (in OneDrive or SharePoint): Temporarily creates a file from the attachment content.
GetFile: Reads the newly created file so it can be used in the email.
FileContent: Stores the retrieved file content.
AddFileToArray: Adds the file and its metadata to the varAttachments array.
DeleteFile: Removes the temporary file from storage.
 
CompText / VarText
These steps build the email body, which includes references to images.
 
SendMail (V2)
Sends the final email with the attachments.

The attachments are being added correctl y, there is noting to see.

I hope you can help me.
Array.png
Flow.png
SendMail.png
Categories:
I have the same question (0)
  • Verified answer
    Power Platform 1919 Profile Picture
    2,061 on at
    Hi @Bergh,
    Glad it solved the problem.
    Please mark the solution, so that it can help others looking for similar issues 
  • Bergh Profile Picture
    88 Season of Giving Solutions 2025 on at
    @Power Platform 1919

    It works!!! I looked at the mail and all photos was in the mail!! Thanks!!! 
  • Bergh Profile Picture
    88 Season of Giving Solutions 2025 on at

    I get this without the quotes, and i put the AddFileToArray på the mail. The indata looks like this
  • Power Platform 1919 Profile Picture
    2,061 on at
    Hi @Bergh.
    can you try like this ?


    for ContentBytes value, dont include quotes for File content.
    sample with out including.

    you will see the result in this format (sample run) :

    if included the quotes : (it is converting to Binary format which is causing the issues)
  • Bergh Profile Picture
    88 Season of Giving Solutions 2025 on at
    @Power Platform 1919

    {
      "Name": @{outputs('CreateFile')?['body/Name']},
      "ContentBytes": "@{outputs('FileContent')}"
    }

    Same issue
  • Power Platform 1919 Profile Picture
    2,061 on at
    Hi ,
    In the addfilestoarray action, can you remove the quotes in present in contentBytes value (dynamic content)?

    {
       "Name" : "dynamic_content_body/name",
       "ContentBytes" : dynamic_content_Utdata
    }
  • Bergh Profile Picture
    88 Season of Giving Solutions 2025 on at
    @Michael E. Gernaey That is so true!
  • Michael E. Gernaey Profile Picture
    53,690 Super User 2025 Season 2 on at
    Hi @Bergh
     
    So sorry for the issues, but super tiny feedback, when you start out telling us its done correctly there really is not a reason for us to read beyond that.

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 Automate

#1
David_MA Profile Picture

David_MA 245 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 207 Most Valuable Professional

#3
trice602 Profile Picture

trice602 190 Super User 2025 Season 2

Last 30 days Overall leaderboard