Skip to main content

Notifications

Copilot Studio - Copilot Studio Skills Development
Unanswered

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

Posted on 9 Sep 2024 05:42:47 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,802 on 26 Sep 2024 at 14:37:13
    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 #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,137

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,813

Leaderboard