Skip to main content

Notifications

Community site session details

Community site session details

Session Id : lb88TRXM86MYTJ7BlppZB7
Power Automate - General Discussion
Unanswered

How to add a GIF image in email body using Power Automate

Like (1) ShareShare
ReportReport
Posted on 14 Dec 2022 19:31:24 by 40

There is one discussion in the community but is not useful/working.
Could someone help/suggest in adding a GIF image in email body via Power Automate along with screenshots/expression?

Categories:
  • Suggested answer
    David_MA Profile Picture
    10,664 Super User 2025 Season 1 on 08 Aug 2024 at 19:55:41
    How to add a GIF image in email body using Power Automate
    Use the method I posted here Send image embeded emails to gmail (powerplatform.com). It is pretty much what others suggested below, except all of the code is in the HTML. It will look like this in your e-mail (don't forget to update the image type from png to gif):
     
    This example shows the image as a link. If you don't want to use it as a link, update the HTML accordingly.

    Not all e-mail clients support GIF images, so that may be the issue you are having: Can You Embed a GIF in an Email? Tips and Tricks | Pipedrive | Pipedrive. Note: this article could be outdated.
     
  • dr_erik Profile Picture
    4 on 08 Aug 2024 at 19:29:45
    How to add a GIF image in email body using Power Automate
    Is there any update, or solution?
  • rinkymaghnani Profile Picture
    4 on 21 Mar 2023 at 19:57:58
    Re: How to add a GIF image in email body using Power Automate

    This didnt work for me. Got a blank email. I had saved the gif image in sharepoint location. Used below code

    <img src="data&colon;image/gif;base64,@{base64(outputs('Get_file_content_using_path')?['body'])}" alt="Trulli" width="500" height="333">

  • Mohammed_Ishaq Profile Picture
    40 on 30 Dec 2022 at 14:37:43
    Re: How to add a GIF image in email body using Power Automate

    Hi @v-chengfen-msft , Please find the complete flow

    Mohammed_Ishaq_1-1672411035292.png

     

     

  • v-chengfen-msft Profile Picture
    on 29 Dec 2022 at 02:01:12
    Re: How to add a GIF image in email body using Power Automate

    Hi @Mohammed_Ishaq ,

    This flow works for me.

    Why won't it work for you.
    Can you screenshot the email  body? (or provide your complete flow)

     

    Best Regards

    Cheng Fen

  • Mohammed_Ishaq Profile Picture
    40 on 20 Dec 2022 at 08:28:16
    Re: How to add a GIF image in email body using Power Automate

    @v-chengfen-msft ,

    The flow is running successfully but the picture is not displayed on the mail.

     

    The same formula being used but then also picture not showing 

  • v-chengfen-msft Profile Picture
    on 19 Dec 2022 at 03:14:34
    Re: How to add a GIF image in email body using Power Automate

    Hi @Mohammed_Ishaq ,

    Could you please tell me:
    1. The picture cannot be displayed in the mail?
    2. Or flow execution failed?

     

     

    I copied the formula, there may be reasons for the characters. Please try this:

    <img src="data&colon;image/gif;base64,base64(outputs('Get_file_content_using_path')?['body'])" alt="Trulli" width="500" height="333">

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

    Best Regards

    Cheng Fen

  • Mohammed_Ishaq Profile Picture
    40 on 18 Dec 2022 at 20:20:35
    Re: How to add a GIF image in email body using Power Automate

    Hi @v-chengfen-msft, thanks for your suggestion.. I tried but isn't working for me.
    Not sure why ... please check my screenshots and help me out...Gif.PNG

  • v-chengfen-msft Profile Picture
    on 15 Dec 2022 at 03:34:50
    Re: How to add a GIF image in email body using Power Automate

    Hi @Mohammed_Ishaq ,

    Please use base64() to transcode [File content], and then use it in <img>

    Here is a test for your reference:

    Here is file in share point:

    vchengfenmsft_4-1671075274178.png

     

    vchengfenmsft_3-1671075247914.png

    Here is flow:

    vchengfenmsft_1-1671075149095.png

    Here is result:

    vchengfenmsft_2-1671075185116.png

     

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

    Best Regards

    Cheng Fen

     

  • Mohammed_Ishaq Profile Picture
    40 on 15 Dec 2022 at 03:14:27
    Re: How to add a GIF image in email body using Power Automate

    @v-chengfen-msft Thanks for your quick response.

    Can I able to provide gif image stored in SharePoint or onedrive? How will I be able to fetch in this case without the URI??

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard