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 / Copilot Studio - handl...
Copilot Studio
Unanswered

Copilot Studio - handle attachments?

(1) ShareShare
ReportReport
Posted on by 14

Hi everyone,

I’m looking to read the contents of Activity.Attachments in Copilot Studio. Currently, I receive a table as the result. I’m not sure how to handle this table object or data type in my Copilot project. My goal is to forward this table (referred to as @Attachments) to a webhook. Alternatively, I would also consider storing these attachments or information somewhere and then just providing the URL.

Has anyone dealt with something similar or have any suggestions on how to approach this?

Thanks!

Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
    Hi,
     
    Without seeing the flow itself, its a little bit of a guess here.
     
    The attachments "property" is always a Table, because it can have 1-M attachments. 
     
    Now this is where you don't have enough details to fully answer so I will guess.
     
    Your webhook only allows for 1 attachment??? and therefor you need to grab the single "Row" of the Attachments, even though it looks like a table.
     
    Even though attachments may only have 1, its still a Table. so if you know for sure, its always just 1 you have 2 options.
     
    1. You can add an Apply to Each(or a For Each). Inside that "loop" it will give you the first attachment. Use that to send to your webhook
    2. You can access the Array of Attachments by ordinal like
    Attachments[0] and then you need to grab the Content so validate this by looking at your content from Activity.Attachments and it will be in a JSON format.
    Work your way to until you get to the properties with name and contents
     
    Silly example
     
    Attachments[body/value][0]['Name']
    Attachments[body/value][0]['contentBytes']
     
    Like that, now send to your Webhook.
     
     
     
     
     
     

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 265 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard