web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

(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)
  • fchopo Profile Picture
    8,001 Moderator 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
  • CU23011457-0 Profile Picture
    2 on at
    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!
     
  • DougM_Barhead Profile Picture
    25 on at
    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Copilot Studio

Last 30 days Overall leaderboard