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 Apps / Embed Image from Share...
Power Apps
Unanswered

Embed Image from SharePoint Library in an Email

(0) ShareShare
ReportReport
Posted on by 1,207

I have built an asset inspection app that lets my client take multiple photos per inspection which are stored in a SharePoint library. The inspection responses are stored in a separate SharePoint list They would like to be able to print a report with the images that they can also email to their repair contractor.

 

I initially set this up as an email with the photos as attachments, however they would like the images to be embedded in the email body. I understand this can't be done from Power Apps due to the images being stored in a SharePoint library. I experimented with the Print() function but they need to be able to print from the mobile app and the print function doesn't work from mobile devices.

 

In the past I have used Power Automate to convert HTML sent from Power Apps using OneDrive Convert File. The problem with this method is OneDrive Convert is limited to 2MB and my client would like to attach multiple images.

 

Is it possible for Flow to get the file content of the inspection images and add to HTML that can be used to send an email? 

 

Wondering what is the best way to add this functionality. I feel this is functionality is desperately needed in Power Apps as attaching multiple images to a PDF report is a common business scenario.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    Hi @Digital ,

    Your first issue is that embedded images in an email are actually a hyperlink to the image stored on a URL This URL must be "anonymously" accessible (meaning no login required), so the image cannot be in SharePoint.

    The issue with OneDrive (and also Google Drive) is that public sharing is possible, however the link is not able to be produced dynamically (you would need to do it to each photo), If this was always the same image, or you had a list of standard images with their links in a table, you could do this, but not for new ones.

    I have resolved to using a Word Merge to PDF and attaching this to the email, but even this has limitations if you want multiple (an unknown number) of images as merge tables in Word can only contain Text.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Digital Profile Picture
    1,207 on at

    Thank you @WarrenBelz ,

     

    I'm now thinking to get the base64 of the images from the document library using Power Automate then add this to as the img src.

  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    @Digital ,

    That actually got me thinking (I have never attempted this and I would have thought you still did not have an image URL "at the other end") - this article may be worth exploring.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

     

  • Digital Profile Picture
    1,207 on at

    @WarrenBelz , cheers for the link.

     

    I've managed to get the base64 of the file and add it to the image tag and it successfully embeds in the email body. 

     

    Now I just need to get it to work for multiple files and make it look pretty. This is turning into a Power Automate thread!

     

    Screen Shot 2022-10-27 at 17.26.24.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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard