Skip to main content

Notifications

Copilot Studio - Copilot Studio Skills Development
Unanswered

System.Activity.Attachments - How to work with the table

(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:
  • fchopo Profile Picture
    fchopo 7,926 on at
    System.Activity.Attachments - How to work with the table
    Hi @WillM83
    You can convert the table object to a Record, using the following expression:
    Set(
        recordObject,
        First(Activity.Attachments)
    )
    
    Where recordObject is a record variable you should create before assigning the value. Once you have the recordObject, you can access the values in each column like: recordObject.email for instance.
     
    Hope that helps!
    Ferran

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,867

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,174

Leaderboard