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 Apps / Options for Displaying...
Power Apps
Suggested Answer

Options for Displaying Images in Gmail and Outlook Using Power Automate

(0) ShareShare
ReportReport
Posted on by 2

Hi all,

I’ve been working with Power Automate to send emails with images (SharePoint list images), and I’m trying to find a way to make images display correctly in both Gmail and Outlook. Here’s what I’ve tried so far:

  1. Hard-coded SharePoint URL - This doesn’t work in either Gmail or Outlook.
  2. Base64 Encoding - This works in Outlook but not in Gmail.
  3. CID (Content-ID) - This works in Outlook but not in Gmail.
  4. HTTP Request Trigger - This works fine in both Gmail and Outlook. However, I am not a Premium user, I am on the Standard plan.

My questions:

  • Can I continue to use the "When a HTTP request is received" trigger if I’m on the Standard plan?
  • Are there any other ways to embed images in emails that will display correctly in both Gmail and Outlook?

 

I appreciate any insights or suggestions! Thanks in advance!

Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,392 Super User 2025 Season 2 on at
    Hi,
     
    Apologies for your issues. Let me start by saying that your questions (well the first), is a little confusing as to why you would want to use that trigger as it relates to the thread. Also, when you say standard plan, what plan is that? HTTP connector is a premium connector, so you have to have a plan that supports premium connectors, so I hope that helps.
     
    Now as for the Images.
     
    Also, you said a "SharePoint list images" but does this mean you have an image column? or do you have a list that you are attaching Attachments too that happen to be images? Of is it a document library list with images?
     
    Let me ask you this. when you said you hardcoded the URLS, did you make sure to use the img HTML tags around the image?
     
    Can you share your emails HTML from Power Automate aka the expression so I can review it.
     
    Thanks,
  • stepello Profile Picture
    19 on at
    Hi,
    Have you tried this method?:
    1. Get the file content
    2. Use dataUri function on the content body:

    3. Use the output in email (make sure you use "code view" on the outlook send email action:
    <img src="@{outputs('Compose_4')}" width="300px">
     
    This method definitely works in Outlook, but I have not tried sending it to Gmail. 

    Alternatively, can you just send images as normal attachments instead of embedding them in the body of the email?
    There is really well working method for attaching varying quantity of files as attachments. Here is the link to article describing the methodology for that:
    https://community.dynamics.com/blogs/post/?postid=e4efadbe-777b-4f16-86e0-9912af78bdf6

    As for the first part of the question, this trigger is part of premium connector, so you need to have a license allowing you to use premium connectors like Power Automate Premium. The names for those licenses change quite often, so it might be called something else in your case. I would assume, that as long as you don't have any trial/developer license assigned to yourself, and it still works, you should be good to go. You can also try to test it with simple flow where one of the actions is premium (for example you can try to trigger your other flow with http request), if it runs fine, and you are not prompted to start a trial, and you have no trial turned on already, you should be good to go :)

    Hope that helps!
  • AA-27020044-0 Profile Picture
    2 on at
    Thank you, stepello, for your response. This solution works fine in Outlook but not in Gmail.
     
    I also appreciate your input, Michael E. Gernaey.
     
    To clarify, the image column is from a SharePoint List.
     
    Below is the Base64 encoded image that works in Outlook but not in Gmail:
    <p class="editor-paragraph">
      <img src="@{dataUri(body('Get_file_content_using_path'))}" alt="Test Image">
    </p>

    On the other hand, the hardcoded URL used in Power Automate doesn’t work in either Outlook or Gmail:
    <p class="editor-paragraph">
      <img src="https://XXX.sharepoint.com/sites/SiteName/@{outputs('Get_file_metadata_using_path')?['body/Path']}" alt="Test Image">
    </p>
     
    Please let me know if you need any other information.
     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard