My file uploads in Copilot Studio broke after recent updates. I upload files but get a type error when passing them to my Power Automate flows. Error: "Input variable 'InputFile' is of incorrect type: Record(Content:File,ContentType:String,Name:String,Value:File)"
Context: The old method `System.Activity.ChannelData` worked fine but was recently deprecated as what I've read. I'm trying out `First(System.Activity.Attachments)` (naned it as FileContent variable) and it returns a Record type but my Power Automate flow expects File type.
Still, the confusing part is that in Flows I set the InputFile parameter to 'File' type, but when I go back to my Copilot Studio agent, it shows up as 'Record' type instead. When I try to change FileContent to match this InputFile type, it doesn't work!!!
I need a way to pass uploaded files from (UI via MSTeams) Copilot Studio to Flows for further OCR processing. Can anyone help?
Michael E. Gernaey
169
Super User 2025 Season 2
Romain The Low-Code...
150
sandeep_angara
75
Super User 2025 Season 2