web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

How to pass attachment (file) from Copilot Studio to Power Automate?

(7) ShareShare
ReportReport
Posted on by 73
Hi everyone,

We have created a chatbot for our customers and it creates a case in Dynamics when the question cannot be answered. After collecting the case data, it asks for a file to upload. We can save the file in Copilot Studio as a variable “file”. 

The chatbot calls a Power Automate flow and gives all variables as information to create a case. Only for the type “file” the information cannot be passed. I get the error message that “file” is not supported. 

I am thinking about passing the file as JSON and parsing it in Power Automate Flow to get the file. Has anyone solved a specific use case and can help me with the definitions?
 
I am having trouble in Cipilot Studio getting the file as JSON and passing it to Power Automate as a string. 
 
 
 
I have the same question (2)
  • Muhammad Irfan Ayoub Profile Picture
    134 on at
    Hi,
     
    To pass an attachment (file) from Copilot Studio to Power Automate, follow these steps:
     
    Step 1: Enable File Upload in Copilot Studio
     
    • In Copilot Studio, go to the topic where you want to handle file uploads.
    • Add a User Input node.
    • Choose File Upload as the input type.
    • This will allow users to upload files in the conversation.
     
    Step 2: Create a Power Automate Flow
    • Open Power Automate and create a new Instant Cloud Flow.
    • Select Copilot Studio as the trigger and choose "When an action is called".
    • Add an input parameter of type File.
    • Add actions to process the file, such as:
    • Save to SharePoint, OneDrive, or Dataverse.
    • Send via email.
    • Convert and manipulate the file
     
    Step 3: Connect Copilot Studio to Power Automate
    • In Copilot Studio, go to the node where you want to call Power Automate.
    • Click "Call an action" and select Power Automate.
    • Choose the flow you created.
    • Map the file upload input to the Power Automate file parameter.
     
    Step 4: Handle File in Power Automate
    • The file will be received in Power Automate as base64 content.
    • Convert and use it as needed (e.g., store in SharePoint or Dataverse).
    I hope it will help you to resolve your issue.
  • Suggested answer
    LP-15050648-0 Profile Picture
    73 on at
    Thanks for your answer. I cannot implement the 2nd step. I cannot find the exsact trigger to add inputs. I used "When Copilot Studio calls a flow", but I cannot add file type there. 
  • TH-29010424-0 Profile Picture
    2 on at
     
    In 3rd step you mentioned "Map the file upload input to the Power Automate file parameter", could you please brief this step, since while passing the input to power automate the type will be record but actually its a file type right?, what is the input I need to use?
  • Suggested answer
    Olufemi 7 Profile Picture
    28 on at

    Hello @LP-15050648-0

    Copilot Studio cannot pass a raw file variable directly to Power Automate because flows only accept primitive types such as String, Number, or Boolean as inputs.

    To send a file, pass its content and name as separate strings. For example, the uploaded file’s content is available as Topic.file.Content and the file name is available as Topic.file.Name.

    In your Power Automate flow:

    Create string inputs called FileContent and FileName.

    Map Topic.file.Content to FileContent and Topic.file.Name to FileName using the flow input mapping interface.

    Parse these strings inside the flow to reconstruct the file.

    References:

    Pass files to agent flows, connectors, and tools


    Use input and output variables to pass information

    Copilot Studio supports file uploads, but flows only accept primitive types. Send file content and name as separate strings, then parse them in Power Automate.
     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 156

#2
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans