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 / Sending documents to S...
Power Automate
Suggested Answer

Sending documents to Sharepoint from a group message in Microsoft teams that have attachments

(0) ShareShare
ReportReport
Posted on by 5
I am trying to create an automatic flow that when a keyword is typed in a teams group chat and this message has an attachment, this attachment is able to be saved in a sharepoint folder. The flow works correctly if I send the file, but the moment someone else sends the file via teams chat along with the keyword, it does not work.
The flow is like this:
When keywords are mentioned
                             Keywords to search for: Demo
                             Message Type: Group Chat
                            ConversationID: Group Name
FOR EACH
                      Select An Output From Previous Steps* : body.value     
Within For each
                           Get message Details

                                  Message: messageID
                                  Message Type: Group chat
                                 Group Chat: Group Name
                           Compose
                                Inputs
: body('Get_message_details')?['attachments'][0]['name']
                         Get file content using path
                             File Path: /Microsoft Teams Chat Files/outputs del compose
                             Advanced parameters: Showing 1-1 (stays the same)
 Get file metadata using the path
                             File path: /Files/Microsoft Teams chat output (output from the get file content using the path) 
                          Create file
                              Site address: Example of site address
                              Folder path: path where it is located
                               File name: output of the get file using metadata using path
                               File content File body get file using metadata 
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    Hi
     
    Does it not trigger at all for others? Or does it fail?
     
    Please share the actual flow, an example of its Run with inputs and outputs etc.
     
    We need to verify if your flow RAN but didn't do anything or didn't run at all, which I cannot tell because you said it doesn't work, but I see no errors or anything 
    listed in the request for help.
     
    Its possible the flow won't trigger for them if they are not allowed too (based on the Flow type, licensing etc).

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 378

#2
Valantis Profile Picture

Valantis 329

#3
David_MA Profile Picture

David_MA 283 Super User 2026 Season 1

Last 30 days Overall leaderboard