Copilot Agent - Retrieve Results from SharePoint List

Kumbhar, Kanchan 0 Reputation points
2025-02-18T09:21:02.5466667+00:00

I have a requirement to develop a functionality where the Copilot agent can retrieve results from a SharePoint list based on a specific column filter value provided by the user. The process should involve the following steps:

  1. User Input: The user will provide a value for a specific column in the SharePoint list.

Filtering: The Copilot agent will filter the list items based on the provided column value.

Result Retrieval: The filtered results will be retrieved and displayed to the user.

Currently, the Copilot agent primarily works with documents and site pages, and it does not return list data as a result. This limitation means that while Copilot can efficiently handle document retrieval and site page interactions, it lacks the capability to directly query and return data from SharePoint lists (Microsoft Learn article on optimizing SharePoint content retrieval).

To overcome this limitation, I have tried the following options:

Custom Action: Create a custom action where Copilot will prompt the user for the column value to filter. This action will call Power Automate to filter the list items and return the item links. Copilot will then provide these links as results to the user.

  • Potential Challenges
  1. Complexity in Setup: Setting up custom actions can be complex and may require significant development effort
  2. Maintenance: Custom actions may need regular updates and maintenance to ensure compatibility with SharePoint updates
  3. Performance: Depending on the size of the list and the complexity of the filter, performance issues may arise

2.Custom Topic: Create a custom topic where Copilot will ask for the input value and similarly call Power Automate to filter the list items.

Potential Challenges

  1. User Experience: Ensuring a seamless user experience can be challenging, especially if the process involves multiple steps
  2. Integration Issues: Integrating custom topics with Power Automate and ensuring they work together smoothly can be complex
  3. Scalability: As the number of users and list items grows, the solution may need to be scaled, which can introduce additional challenges

3.Create generative answer: Added a new action where Copilot will take input from the user and added the "Create generative answer" action, providing the SharePoint list as a data source in classic data (referenced from Microsoft Learn).

Potential Challenges

  1. Attachment Inclusion: The action returns results for SharePoint list items where attachments are included, and if the search text is present in the attachment file
  2. Column Value Consideration: The action does not consider SharePoint list column values, which may lead to irrelevant results

Question: What am I missing, or What are the other way to achieve my requirement?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,230 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,400 questions
Microsoft Copilot for Microsoft 365 Development
Microsoft Copilot for Microsoft 365 Development
Microsoft Copilot for Microsoft 365: Microsoft 365 Copilot refers collectively to Copilot experiences within Microsoft 365 applications.Development: The process of researching, productizing, and refining new or existing technologies.
229 questions
Microsoft Copilot
Microsoft Copilot
Microsoft terminology for a universal copilot interface.
655 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sayali-MSFT 3,691 Reputation points Microsoft External Staff
    2025-02-21T10:35:34.7266667+00:00

    Hello @Kumbhar, Kanchan,
    Currently, the SharePoint capability in the Declarative Agent is limited to files only and does not support list items. At this time, we only handle SharePoint sites, folders, and files.

    Document-https://learn.microsoft.com/en-us/microsoft-365-copilot/extensibility/optimize-sharepoint-content

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.