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

Announcements

News and Announcements icon
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,592 Super User 2025 Season 1 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
    38 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 813

#2
Vish WR Profile Picture

Vish WR 313

#3
Haque Profile Picture

Haque 271

Last 30 days Overall leaderboard