web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / File Uploads in Teams ...
Copilot Studio
Suggested Answer

File Uploads in Teams for Copilot Studio: Attachments Seem Unusable

(1) ShareShare
ReportReport
Posted on by 2

I've been trying to use Copilot Studio to process files uploaded by users in Microsoft Teams, but the bot doesn't recognize the files.

Only after thoroughly examining both the Teams message structure and the 'System.Activity' object in Copilot Studio did I realize that the Attachments array is consistently empty; the attachment information isn't being passed through at all.

If there were at least some indication that an attachment exists (even if not in the standard Attachments field), I could potentially work around it by trying to fetch the original Teams message details (using a message ID, for example) to retrieve the attachment ID or filename. However, since there's absolutely no trace of the attachment in the data accessible to Copilot Studio, I'm completely stuck.

I genuinely can't understand why the file attachment capability is even enabled for Copilot Studio bots in Teams if it's entirely non-functional. It seems impossible to use.

 

 

Below are the Teams message body and the Copilot Studio 'System.Activity' object, respectively. Both originate from the same single message instance where a file was attached:

{
        "entity": {
            "teamsFlowRunContext": {
                "MessagePayload": {
                    "Id": "****",
                    "From": {
                        "Application": null,
                        "Conversation": null,
                        "Device": null,
                        "User": {
                            "DisplayName": "****",
                            "Id": "****"
                        }
                    },
                    "Body": {
                        "ContentType": "html",
                        "Content": "<p>ㅁㅁㅁㅁ</p><attachment id=\"****\"></attachment>",
                        "PlainText": "ㅁㅁㅁㅁ"
                    },
                    "Subject": "",
                    "LinkToMessage": "https://teams.microsoft.com/l/message/****/****@unq.gbl.spaces/****?context=%7B%22contextType%22:%22chat%22%7D",
                    "ReplyToId": null
                },
                "Id": "f:****",
                "ChannelData": {
                    "EventType": null,
                    "InvalidateInvokeCache": null,
                    "Team": null,
                    "Tenant": {
                        "Id": "****"
                    },
                    "Channel": null,
                    "Notification": null,
                    "OnBehalfOf": null
                },
                "From": {
                    "Id": "8:orgid:****",
                    "Name": "****",
                    "Role": null,
                    "AadObjectId": "****",
                    "Properties": null
                },
                "Conversation": {
                    "Id": "19:****_****@unq.gbl.spaces",
                    "Name": null,
                    "IsGroup": null
                },
                "Locale": "ko-KR",
                "CommandContext": "message",
                "LocalTimezone": "Korea Standard Time"
            },
            "cardOutputs": {}
        }
}
 
 
 
{
	"Activity": {
		"Attachments": [],
		"Channel": {
			"$kind": "OptionDataValue",
			"type": {
				"$kind": "SystemOptionSet",
				"name": "ChannelId"
			},
			"value": "MsTeams"
		},
		"ChannelData": {
			"tenant": {
				"id": "****"
			}
		},
		"ChannelId": "msteams",
		"From": {
			"Id": "29:****",
			"Name": "****"
		},
		"Name": null,
		"Recipient": {
			"Id": "28:****",
			"Name": "앤서니"
		},
		"Text": "ㅁㅁㅁㅁ",
		"Type": {
			"$kind": "OptionDataValue",
			"type": {
				"$kind": "SystemOptionSet",
				"name": "ActivityType"
			},
			"value": "Message"
		},
		"TypeId": "message",
		"Value": null
	},
	"Bot": {
		"Components": {
			"Actions": {
				"****.action.OneDrive-": {
					"DisplayName": "------"
				}
			},
			"Topics": {
				"****.topic.ConversationStart": null,
				"****.topic.Greeting": {
					"DisplayName": "---"
				},
				"****.topic.ObDgRvKaQwfiiGRp02aBf": null,
				"****.topic.OnError": null,
				"****.topic.ResetConversation": null,
				"****.topic.Signin": null,
				"****.topic.StartOver": {
					"DisplayName": "-----"
				},
				"****.topic.ThankYou": null
			}
		},
		"EnvironmentId": "Default-****",
		"Id": "****",
		"Name": "앤서니",
		"SchemaName": "****",
		"TenantId": "****"
	},
	"ClientPluginActions": [],
	"Conversation": {
		"Id": "a:****",
		"InTestMode": false,
		"LocalTimeZone": "Asia/Seoul",
		"LocalTimeZoneOffset": {
			"$kind": "TimeDataValue",
			"value": "09:00:00"
		}
	},
	"LastMessage": {
		"Id": "****",
		"Text": "ㅁㅁㅁㅁ"
	},
	"Recognizer": {
		"TriggeringMessage": {
			"Id": "****",
			"Text": "안녕"
		}
	},
	"User": {
		"DisplayName": "****",
		"Email": "****",
		"FirstName": "****",
		"Id": "****",
		"IsLoggedIn": true,
		"Language": {
			"$kind": "OptionDataValue",
			"type": {
				"$kind": "SystemOptionSet",
				"name": "Locale"
			},
			"value": "Korean"
		},
		"LastName": "****",
		"PrincipalName": "****"
	}
}
 
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
  • Suggested answer
    rzaneti Profile Picture
    4,256 Super User 2025 Season 2 on at
     
    I was digging into the process for using Power Automate manipulating files attached by users in Copilot Studio a few weeks ago - as I didn't find too much documentation about it, I decided to write a blog with a step-by-step on how to get the files attached by the user and process it in PA: https://digitalmill.net/2025/05/20/send-files-attached-by-the-user-from-microsoft-copilot-studio-to-power-automate/.
     
    You use case is probably different, but it can eventually give you some additional clarity into this process. If it doesn't solve your problem entirely, please provide further details on your use case. 
     
    Let me know if it works for you or if you need any additional help!
     
    If this solved your issue, please mark it as Accepted Answer.
    👍 If it helped, feel free to give it a like!

    🌐 Explore more Power Platform content on my Website or on my ▶️ YouTube
    💼 Find me on LinkedIn

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 261 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 198 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard