Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Building Copilot Studio Chatbo...
Suggested answer

File Uploads in Teams for Copilot Studio: Attachments Seem Unusable

(0) ShareShare
ReportReport
Posted on by

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": "****"
	}
}
 
Categories:
  • Suggested answer
    rzaneti Profile Picture
    4,091 Super User 2025 Season 1 on at
    File Uploads in Teams for Copilot Studio: Attachments Seem Unusable
     
    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
  • ronaldwalcott Profile Picture
    3,810 on at
    File Uploads in Teams for Copilot Studio: Attachments Seem Unusable

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

Announcing the Engage with the Community forum!

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - Building Copilot Studio Chatbots in Microsoft Teams

#1
DO-29051811-0 Profile Picture

DO-29051811-0 4

#2
ronaldwalcott Profile Picture

ronaldwalcott 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 2 Super User 2025 Season 1

Overall leaderboard

Featured topics