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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Document Upload in Cop...
Copilot Studio
Suggested Answer

Document Upload in Copilot Studio

(3) ShareShare
ReportReport
Posted on by 2
Hi Team,
 
I need to handle a scenario where a user uploads a document through Copilot Studio (published in Teams), and I want to save the document to base64 and send it to a Power Automate flow. Can you suggest a solution for this?
I have the same question (0)
  • DougM_Barhead Profile Picture
    25 on at
    It appears this is not possible. My earlier post.
     
    Pls let me know if you manage to achieve this.
     
    You can catch the event of the document being attached which you can extract as a variable of type "file" in Copilotstudio.
     
    Power Automate will allow you to specify a variable of type "File" as input (from Copilotstuido) to your flow, however these variable types are not compatible.
     
    It would appear the in CPS the variable type "file" is base64 encoded, which you would think is helpful, but PA won't accept this - as a File, String or anything else it would seem.
     
    Converting the CPS "file" to another type does not seem to be an option as there are no ways to convert this to another type. That I could find anyway. 
     
     
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,590 Super User 2025 Season 2 on at
     
    Unfortunately i believe this is not possible at this point of time. We will not be able to save the document to base64 format using copilot studio.
     
    We will be able to only pass other datatypes such as Text, Boolean, num from Copilot Studio to Power automate.


    Thanks.

    Visit my Blog
  • Suggested answer
    -jake- Profile Picture
    20 on at
    Haven't tried this myself, but wondering if a connector action might help out here.
     
    1. Create a topic to "catch" file attach events (mentioned by DougM earlier)
    2. Add a connector action to store the attachment in a designated SharePoint library (Create File action) 
    3. Collect the newly created file ID, which is (presumably) returned in the action output
    4. Then, invoke your flow, passing the file ID as a parameter, instead of the binary content
    5. Update the flow so that when triggered, it retrieves the file content from the SharePoint library 
    6. ??? 
    7. Profit
     
    There are a few assumptions in the mix there and it will require a little retooling of your existing work... But I'm curious if that might offer a path. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 261 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 198 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard