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

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,932 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 177

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 130 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 45 Super User 2026 Season 1

Last 30 days Overall leaderboard