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

Community site session details

Session Id :
Power Automate - General Discussion
Answered

Issue with multiple photos to mail

(0) ShareShare
ReportReport
Posted on by 88
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.
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    52,857 Super User 2025 Season 2 on at
    Issue with multiple photos to mail
    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.
  • Bergh Profile Picture
    88 on at
    Issue with multiple photos to mail
    @Michael E. Gernaey That is so true!
  • Power Platform 1919 Profile Picture
    1,773 on at
    Issue with multiple photos to mail
    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 on at
    Issue with multiple photos to mail
    @Power Platform 1919

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

    Same issue
  • Power Platform 1919 Profile Picture
    1,773 on at
    Issue with multiple photos to mail
    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 on at
    Issue with multiple photos to mail

    I get this without the quotes, and i put the AddFileToArray på the mail. The indata looks like this
  • Bergh Profile Picture
    88 on at
    Issue with multiple photos to mail
    @Power Platform 1919

    It works!!! I looked at the mail and all photos was in the mail!! Thanks!!! 
  • Verified answer
    Power Platform 1919 Profile Picture
    1,773 on at
    Issue with multiple photos to mail
    Hi @Bergh,
    Glad it solved the problem.
    Please mark the solution, so that it can help others looking for similar issues 

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

Coming soon: forum hierarchy changes

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
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard