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 / Query Across Dataverse...
Copilot Studio
Suggested Answer

Query Across Dataverse Metadata + SharePoint Word Content

(0) ShareShare
ReportReport
Posted on by
Hi everyone,
 
I’m building an agent in Copilot Studio and I’m trying to design a solution that can return combined results from Dataverse and SharePoint Word document content.
 
🔹 Background
 
I have a Power Platform solution with:
  • Dataverse table storing document metadata (e.g., Title, Region, MINumber, etc.)
  • SharePoint document library storing the actual Word documents
  • Each Dataverse record contains the SharePoint URL / location of the corresponding Word document
So the Dataverse record acts as the metadata layer and SharePoint stores the document content.
 
🔹 Requirement
 
I want the Copilot agent to:
  • Answer questions based on Dataverse metadata
  • AND also perform generative / semantic search on the content of Word documents stored in SharePoint
  • Then return combined results where both conditions are satisfied
🔹 Example Scenarios
 
Let’s say: For a Dataverse record title: “Luxembourg YellowBelt Review”,  metadata is Region = “EU” and MINumber = “657556”
The Word document stored in SharePoint contains a clause called “Reservation of Rights”.
 
I want the agent to correctly answer prompts like:
“Get me all documents which have MINumber = ‘657556’ and have a clause called ‘Reservation of Rights’.”
 
Result should include documents where:
Dataverse.MINumber = 657556
Word document content (SharePoint) contains “Reservation of Rights”
 
 
I have the same question (0)
  • Suggested answer
    Haque Profile Picture
    3,653 on at
    Hi @Aveeyn,
     
    Seems like you’ve got a hybrid datasources for a target solution:
    1. Dataverse table holds metadata (Title, Region, MINumber, etc.).
    2. SharePoint library holds the actual Word documents.
    3. Each Dataverse record stores the SharePoint URL of its corresponding document.

    The challenge is to return combined results — metadata + document content — in one queryable experience. 

    Before everything - you get an idea how to build knowledge (with external documents, synonyms and glossary) you can spend some times here, if you are just starting.

    In a minimalistic way, we can go for Virtual Tables (Dataverse + SharePoint), let's see if these steps can be achieved.

    1. Create a Dataverse virtual table that surfaces SharePoint document metadata alongside Dataverse records.
    2. Use Power Automate custom connector or Dataverse plug-in to pull document text when queried.
    3. This way, users query Dataverse directly but see combined metadata + document content. So Virtual table is your knowledge source - you can now follow the link I shared

     

    Or without external services, we can leverage PowerAutomate and  AI builder:

    1. Trigger: User searches or requests a record.
    2. Dataverse step: Query the table for metadata.
    3. SharePoint step: Use the stored URL to fetch the Word document.
    • Use Word Online (Business) connector → “Extract text from Word document.”
    • Or use AI Builder – Text Extraction to parse .docx.
    {
      "Title": "White Board Logistics Pvt Ltd",
      "Region": "South Asia",
      "MINumber": "ABC11345",
      "DocumentContent": "Logistics details and project scope..."
    }
    
     
                 4. Compose: Merge metadata + extracted text into a single JSON object.
                 5. Return: Send this combined object back to Power Apps or Teams. So your data source is unified, you can use this as knowledge source and create prompts what you need on chatbot.
     
     
    To be very simplistic - if you can bring all the sharepoint documents as knowlege source (if not pile of documents there) no additional flow is needed.
     
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard