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 / Get files from SharePo...
Copilot Studio
Unanswered

Get files from SharePoint, send the result to Copilot, show the documents as list inside Copilot

(0) ShareShare
ReportReport
Posted on by 1,811 Super User 2024 Season 1
I am trying to create a copilot inside copilot studio, which do the following:-
 
1) Call a Power Automate Flow to return the documents from a SharePoint online document library.
2) I will select the File name and File URL only
3) Send the documents to Copilot.
4) then i need to build a list inside a Copilot Question, to select a Document, as i want to send the document to another power automate flow.
 
Here what i have :-
 
1) Inside Copilot i am calling the flow:-
 
 
2) Here is the flow. Where i got the files, Select the Name & Url, initialize the variable with the output of the Select, and return the variable to Copilot, after converting the variable into json() :-
 
 
 
here is sample of the response from the flow:-
 
{
  "r"
"
[
{\"Name\":\"New Microsoft Word Document (4)\",\"Url\":\"https://**.sharepoint.com/sites/Copilot/New/New%20Microsoft%20Word%20Document%20(4).docx?d=w36a23c408c844a4ebf4d444f8777a975\"},
{\"Name\":\"VScompleted\",\"Url\":\"https://**.sharepoint.com/sites/Copilot/New/VScompleted.png\"},
{\"Name\":\"Salary\",\"Url\":\"https://***.sharepoint.com/sites/Copilot/New/Salary.docx?d=wcf24819ffdcf4616873cd50c24f1b1d0\"}
]
"
}
 
 
but how i can convert this JSON to a table inside Copilot and show this table as a question to the user, to select a specific document?
Thanks
I have the same question (0)
  • Suggested answer
    sandeep_angara Profile Picture
    424 Super User 2025 Season 2 on at
    @johnjohnPter You can use adaptive cards to display this JSON as table. It needs little work either in topic or through your power automate flow.

    Documentation on Table element in adaptive cards
     
    Please mark this as verified if this response answers your question, else please don't hesitate to reach out.
     
    Sandeep Angara 
     
  • johnjohnPter Profile Picture
    1,811 Super User 2024 Season 1 on at
     
    can you please provide some steps i can try at my end?

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 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard