Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Copilot Studio Skills Development
Unanswered

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

Like (1) ShareShare
ReportReport
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:
  • DougM_Barhead Profile Picture
    25 on 12 Feb 2025 at 23:38:00
    System.Activity.Attachments - How to work with the table
    I can get the content of the file using First(System.Activity.Attachments).Value
     
    But, I can't pass that blob on to Power Automate - same as OP
     
    BTW @fchopo Set does not seem to work in PowerFX for Copilotstudio.
  • CU23011457-0 Profile Picture
    2 on 23 Jan 2025 at 15:22:54
    System.Activity.Attachments - How to work with the table
    Hello everyone,
     
    have you been able to find out more since your question?
     
    I'm trying to attach a file in the chat and then extract the information using AI Prompts. So far I have the problem that I can't process the file that I think is in ‘System.Activity.Attachments’ because many PowerFx formulas are not supported. 
    At the moment I'm trying to get on with the blob obtained with ‘First(System.Activity.Attachments).Value’.

    Do you have any other ideas? 

    Many thanks in advance!
     
  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

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

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - Copilot Studio Skills Development

Overall leaderboard
Loading started