Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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 
 
  • Suggested answer
    Michael E. Gernaey Profile Picture
    43,442 Super User 2025 Season 1 on at
    Sending documents to Sharepoint from a group message in Microsoft teams that have attachments
    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492