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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

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

(4) ShareShare
ReportReport
Posted on by 67
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 (1)
  • Verified answer
    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
    67 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. 

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 39

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans