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 / Save Picture/Attacheme...
Power Automate
Suggested Answer

Save Picture/Attachement from Teams Group Chat Message to Sharepoint

(0) ShareShare
ReportReport
Posted on by
Hello, I'm new to Power Automate and I am trying to make a workflow that save Pictures or Attachment when images and files are post on a specific group chat
The trigger of the flow to happen is "When a new message is add on Group chat or Channel"

However, after sending single or multiple images whether with text or without text the flow seems to be stuck on SharePoint's "Get file content" and "Create file"
For "Get file content" File Identifier is using function "items('For_each_2')?['contentUrl']"

For "Create file" File Content is using "Get file content"'s Body
After a while the SharePoint seems to not save any of the photos sent to the Teams chat

I don't figure what could be the problem

Thank you,
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,069 Moderator on at
     
    You must download the Teams attachment via HTTP using contentUrl, then upload it to SharePoint. You can’t access it directly as a SharePoint file.
     
    Teams chat attachments are not SharePoint files, so Power Automate must act as a middleman.
     
    How the bridge works
    Get the attachment link
         When the Teams trigger fires, it provides an array of attachments. From that metadata, you retrieve the contentUrl.

    Download the file (critical step)
         You cannot use SharePoint → Get file content here.
         Instead, you must use:
         HTTP action (GET) with the contentUrl
         (This is the most reliable approach)
    This step actually pulls the binary file data into the flow.
     
    Upload to SharePoint
         Once you have the file content from the HTTP action, pass it directly into SharePoint → Create file.
     
    Flow summary
    Teams trigger
    → HTTP GET (contentUrl)
    → SharePoint Create file
     
    By doing this, the flow temporarily “downloads” the file and then saves it into SharePoint.
     
    Key clarification (important)
    contentUrl is not a SharePoint file identifier
    That’s why SharePoint → Get file content hangs or returns “Not specified”
    HTTP (or Graph) is required to fetch the file first
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.

    Sunil Kumar Pashikanti, Moderator
    Blog:
     https://sunilpashikanti.com/posts/
     

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
Vish WR Profile Picture

Vish WR 881

#2
Valantis Profile Picture

Valantis 823

#3
Haque Profile Picture

Haque 485

Last 30 days Overall leaderboard