Hi all,
I'm building some custom logic to send an array of files uploaded to my agent in an HTTP request to either an Agent Flow or Power Automate flow for async processing.
I'm facing an issue with adding a record to my array variable. See attached image. What I've done:
- Set a Table variable "FilesToSend" as an empty array
- Loop over my "System.Activity.Attachments" table
- Modify my "FilesToSend" table by adding a current record
- Now instead of just adding the record I want to append it as an object like:
{
fileName: CurrentItem.Name,
fileUrl: CurrentItem.ContentUrl,
contentType: CurrentItem.ContentType
}
However, to my knowledge there are no PowerFx functions available in the Co-pilot topic designer for Set or Collect (looking at both the auto-complete and the formula references here).
Has someone faced this before and can advise me?
Thanks!
Wes