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 / HELP! Embed Image that...
Power Automate
Suggested Answer

HELP! Embed Image that is visible everyday

(2) ShareShare
ReportReport
Posted on by 80
Hi Experts! I am back with a different stuck problem. I have an existing flow actually that works BUT the problem is the image that is embed in the chat is missing if we try to get back from like three days ago, meaning the image in chat will just be visible for maybe 24 hours. What I need is a flow wherein even when I backread I will still see the image from example last week. But what I get is this:

 
Categories:
I have the same question (0)
  • Suggested answer
    trice602 Profile Picture
    16,071 Super User 2026 Season 1 on at
    Hi there!
     
    This is cool!  Great job!  The issue is the get thumbnail, if I understand correctly, those are going to be temporary images that do in fact expire as you have indicated.  The solution is to save those thumbnail images to a SharePoint site first and then use that URL which will solve this, provided that everyone in the thread has at least read access from the site/folder where the image is coming from.
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and check the box below "Does this answer your question" to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • janiceXcruz Profile Picture
    80 on at
    Hi Sir @trice602. Thank you for the response, if it is not too much can you help me to guide me on how to do that flow? I did try but kinda lost in the dynamic content and expressions to use.
  • Ellis Karim Profile Picture
    11,995 Super User 2026 Season 1 on at
     
    Here is one method you can use to save a low-resolution file image preview to a shared location as mentioned by @trice602.
     
     
     
    Steps 1 to 3 gets the URL of the OneDrive Documents folder as your file is saved to your OneDrive.
    (You can also hardcode this value if you know it, or after you get the webURL in step 2 below. Example of a OneDrive Documents folder or webURL: https://badpassword-my.sharepoint.com/personal/ellis_karim_dev365_com/Documents )
     
    Step 1: initialize a variable. This will store the URL of the OneDrive Documents folder.
     
    Step 2: Use Office 365 Users: Send an HTTP request to find the webURL (the URL of the OneDrive Documents folder):
     
    URI:
    https://graph.microsoft.com/v1.0/me/drive?select=webUrl
     
    Step 3: Extract the webURL from the response body of Send an HTTP request action:
     
    You can copy-and-paste the following into the Value box of the Set variable action:
    @{body('Send_an_HTTP_request')?['body']?['webUrl']}
     
    Step 4: Create the file in OneDrive
     
     
    Step 5 Get the file preview image:
     
     
    You can copy-and-paste the following Uri
    /_layouts/15/getpreview.ashx?path=@{variables('webUrl')}@{outputs('Create_file')?['body/Path']}
     
    Step 6 Save the file preview image to a shared location:
     
    Step 7 and 8:  Get the URL of the thumbnail image saved to SharePoint. I'll store the URL of the thumbnail image in a compose action:
     
     
     
    Example link to item URL:
     
    If you need higher quality thumbnails
    I think that you will need to download the thumbnail first, then save it to a shared location in SharePoint.
     


    Then follow steps (7) and (8) above to get the URL of the thumbnail image saved to SharePoint.
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • Ellis Karim Profile Picture
    11,995 Super User 2026 Season 1 on at
     
    Have you been able to get a working solution to your question?
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • janiceXcruz Profile Picture
    80 on at
    Hello Sir @Ellis Karim. Thank you for not giving up on me. I manage to follow all the instructions but I have an error on this. I do not know why it appears the "Apply to each".


  • Ellis Karim Profile Picture
    11,995 Super User 2026 Season 1 on at
     
    On first glance, start by placing all the actions within the Apply to each loop:
     
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • janiceXcruz Profile Picture
    80 on at
    Hi Sir @Ellis Karim. I did your instruction but still failed under Send an HTTP request to Share point. Now, I tried the option 2 on the first one you gave (If you need higher quality thumbnail) I followed every step and it was success flow BUT the send in group chat is this. Below is the flow, Please refer to Create File 2 under *File Content Body that I attached is from Upload file from URL since tehre is no option for Body under Get file content. I am almost there.


  • Suggested answer
    Ellis Karim Profile Picture
    11,995 Super User 2026 Season 1 on at
     
    I created the following demo flow. I had to use an adaptive card posted to get the image to display.
     
    Email with attachment:
     
    Teams message, showing the file thumbnail preview image:
     
    The flow:
     
     
     
     
    You can copy-and-paste the following code for the adaptive card:
    {
        "type": "AdaptiveCard",
        "body": [
            {
                "type": "TextBlock",
                "text": "Hello",
                "size": "ExtraLarge",
                "weight": "Bolder"
            },
            {
                "type": "TextBlock",
                "text": "This is a test",
                "wrap": true
            },
            {
                "type": "Image",
                "url": "@{outputs('Compose')}",
                "altText": "My Image"
            }
        ],
        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
        "version": "1.4"
    }
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard