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 / Embedding images into ...
Power Automate
Answered

Embedding images into email from SharePoint list

(1) ShareShare
ReportReport
Posted on by 11

Howdy folks,

 

I have an existing flow that gets attachment data from new SharePoint list entries and appends them to an array to be sent out as email attachments.  I have been asked if I can embed the images into the body of the email and that has me stumped.

I understand how to add an image to the body using the concat function, but what do I do when the amount of potential images is undefined?  There could be one image or 10...

Thank you.

Categories:
  • Anil_g Profile Picture
    668 Moderator on at

    @FueldByCoffee 

     

    I beleive you can loop in the files and repeat the concat function inside the loop to make all the files as attachment and add all of them together

     

    cheers

  • Verified answer
    FueldByCoffee Profile Picture
    11 on at

    For anyone looking for an answer to this in the future:

     

    I was overthinking this.  Create a string variable, for this we'll call it varEmbedImages.  Then do a apply to each loop on the SharePoint list attachments > "Get attachment content" > Compose "dataUri(body('Get_attachment_content')" > Append to string variable Name: varEmbedImages Value: "concat('<br>','<img src="',outputs('Compose_-_Image_URI'),'"alt = />')"

     

    Screenshot 2024-06-17 104033.png

     

    I hope this helps someone else down the line.

  • CU24070609-0 Profile Picture
    on at
     
    Can you please share full the flows with me?
     
    Thanks.
    David

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
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 211 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 190

Last 30 days Overall leaderboard