Showing results for 
Search instead for 
Did you mean: 
Not applicable

Insert images on Outlook email through OneDrive

Hello All,


I'm trying to email reports to clients using charts as images. The images are hosted in OneDrive and I have tried to insert them by two different methods listed below. For retrieving the content I'm using Get File content using path 



1. base64 encoding: 


<img src=concat('data&colon;image/png;charset=utf-8;base64,',base64(body('Get_file_content_using_path'))) />
Notes: Works well in Outlook mobile and app but it doesn't work in Outlook desktop.Gmail as well doesn't support very well.


2. Attachment link:

Using the attachment as a source of the image.



<img width="80%" src=1234.png />



In the email configuration:


Notes: Works well in Outlook desktop, doesn't work well in Outlook mobile, app or gmail.




As a side note, I don't want to use URL images, because it makes the process more prone to errors. At the time I'm generating images through R and placing in OneDrive folder, called images.



Community Support
Community Support

Re: Insert images on Outlook email through OneDrive

Hi @ acanepa,


Could you please share a screenshot of the configuration of your flow?



I have made a test on my side,and I have made a test use the base64 encoding to send the email with images, however, the images in the my outlook in computer would be a red "x" as screenshot below:



I couldn't install the outlook in my mobile so I couldn't test it on my mobile.


Please share more screenshot and details so we could provide a proper workaround for you.



Alice Zhang

Not applicable

Re: Insert images on Outlook email through OneDrive

Hello @v-yuazh-msft


Thanks for your response. Here is my flow:


  • Get rows: Retrieving site list
    • Loop
      • Get file content from Onedrive using the name of the site. (There two because I'm pulling two images).
      • Send the email: I'm testing the two ways of showing the image, as I said earlier the first IMG tag shows the image for Outlook desktop users.  The second method only works for Outlook mobile, doesn't work in Gmail (any platform) or Outlook Desktop.


Note: The attachment only works for the first link (<img src=sitename.png>)


The code generated by the email, copied into an HTML previewer works well for base64 code.




I start to wonder that none of this two methods are good to display images.


Helpful resources


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021


Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (11,418)