Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Copilot Studio Skills Development
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?
Categories:
  • Suggested answer
    -jake- Profile Picture
    18 on at
    Document Upload in Copilot Studio
    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. 
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,500 Super User 2025 Season 1 on at
    Document Upload in Copilot Studio
     
    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
  • DougM_Barhead Profile Picture
    25 on at
    Document Upload in Copilot Studio
    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. 
     
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,518 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,692 Most Valuable Professional

Leaderboard