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 / Problems when I want t...
Power Automate
Answered

Problems when I want to display an image on the connection post message in chat and channel

(0) ShareShare
ReportReport
Posted on by 56

Halo everyone! 

I have a problem with my power automate. how do i link onedrive that contains pictures. can I show it in connection post message in chat and channel in teams. when I want to upload with a link from OneDrive. image does not appear. please solve it

iamfauzi16_0-1688552039647.png


thank you

Categories:
  • Verified answer
    Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @iamfauzi16 

     

    Can you share your workflow what has done?

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

  • David_MA Profile Picture
    15,681 Super User 2026 Season 2 on at

    If you are storing the image in OneDrive, by default nobody will have access to the image. You will need to be sure that you share the image with everyone who will need to see it in the Teams channel. I would suggest that you save the image in the site contents library of the SharePoint site associated with the Team. This way you will ensure that members of the team have access to the image.

  • sandeepstw Profile Picture
    312 Moderator on at

    Hi There, 

     

     

     You can create an automation flow in Power Automate that gets the sharing link of an image file in OneDrive and then posts this link in a Teams chat or channel. However, due to the security restrictions on OneDrive, simply posting a link might not display the image. So, you can use the Graph API to fetch the thumbnail URL of an image and post that in Teams to make the image appear directly. Please follow the steps below:

    Step 1: Create a Manual Flow

    1. In the Power Automate dashboard, click on "Create" and then "Instant cloud flow".
    2. Provide a name for the flow, select "Manually trigger a flow", and click on "Create".

    Step 2: Get File Metadata and Content

    1. Add a new step and search for "Get file metadata using path" (OneDrive).
    2. Choose the appropriate OneDrive account.
    3. In the "File Path", specify the path of the image file from which you want to get the metadata.

    4. Now, add a new step and search for "Get file content using path" (OneDrive).
    5. Choose the same OneDrive account and specify the same path in the "File Path" field.

    Step 3: Get Thumbnail URL Using Microsoft Graph API

    1. Add a new HTTP step and set the Method as "GET".
    2. For the Uri, input `https://graph.microsoft.com/v1.0/me/drive/items/{fileId}/thumbnails`.
    - Replace `{fileId}` with the ID of the file, which you can get from the output of the "Get file metadata" step.

    3. In Headers, add `Authorization` with the value `Bearer {access_token}`.
    - `{access_token}` can be obtained from an OAuth 2.0 authorization step.

    4. In the response, you will get a list of thumbnails, from which you can choose any. For example, `body('HTTP')['value'][0]['medium']['url']`.

    Step 4: Post Message in Teams

    1. Add a new step and search for "Post a message (v3)" (Teams).
    2. Choose the Team and Channel where you want to post the image.
    3. For the "Message Content", you can use the thumbnail URL obtained from the previous step. You can use the format `<img src="{thumbnail_url}" />` to display the image in the message.

    Remember to save your flow. Now, whenever you run this flow, it will fetch the image from OneDrive and post it to the specified Teams chat or channel. Be sure to replace placeholders like `{fileId}`, `{access_token}`, and `{thumbnail_url}` with their actual values in the respective steps.

     

    Please give me kudos and make as solution if it helps. 

     

    Thanks, 

    Sandeep Mishra

     

  • iamfauzi16 Profile Picture
    56 on at

    Sure, this is my flow. i have a link image from sharepoint in teams channel. but i don't know, if i can use url image not display in message channel.

    iamfauzi16_0-1688634967449.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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard