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 / SharePoint Data Access...
Copilot Studio
Unanswered

SharePoint Data Access - Seeking Guidance and Possible Call for Help

(0) ShareShare
ReportReport
Posted on by 114

Hi everyone,

I'm experiencing issues with accessing SharePoint data through our system. While it works some days, on others, the same queries yield no useful results. This inconsistency is challenging, and I'm wondering if it's a common problem or something specific to my setup. I've followed standard access procedures but still face limitations on what can be answered effectively.

  1. Register an application on the Azure portal (https://portal.azure.com/).

    • Copy the Application (client) ID and store it in notepad.
  2. Set up Authentication:

    • In the Azure portal, under the registered application, navigate to "Authentication" and add a platform, selecting "Web".
    • Provide the URL for redirecting. This involves going back to Copilot Studio, navigating to Settings -> Security -> Authorization, selecting Manual for Custom website, and copying the Redirect URL.
    • Use this URL in Azure under Redirect URLs and select the required options. You may need to add additional URLs as necessary.
  3. Generate a Client Secret:

    • In the Azure portal, under your application, go to "Certificates & secrets" and create a new client secret.
    • Copy the value of the client secret and store it in notepad.
    • Fill in the client ID and client secret back in Copilot Studio.
  4. Configure API Permissions in the Azure Portal:

    • Grant admin consent.
    • Add permissions for Microsoft Graph, specifically Delegated permissions. Choose "openai profile," "Sites.Read.All," and "Files.Read.All".
  5. Update Copilot Studio with Scopes:

    • Back in Copilot Studio, add the permissions to the scope, including one for the site and one for files.

Could anyone who has navigated similar issues share their insights or offer guidance? Additionally, I would greatly appreciate the opportunity for a short call to discuss potential solutions. Please let me know if anyone is available for this.

Thanks in advance for your help!

Categories:
I have the same question (0)
  • adilei Profile Picture
    on at

    Queries do return results? You're not getting "I'm not sure how to help with that"?

     

  • Kabilesh Profile Picture
    177 on at

    Hi everyone,

     

    I'm experiencing a similar issue. From my perspective, when we initially initialize Copilot with the data source, it returns the desired results. However, after publishing and attempting to change the data source, any subsequent query requests consistently fail.

     

    Could someone who has dealt with similar issues share insights or offer guidance?

     

    Thank you in advance for your assistance!

  • adilei Profile Picture
    on at

    You will have to be more specific. 1. What is the data source? 2. If it's SharePoint, how are you setting up authentication 3. is it working from the test canvas?

  • Kabilesh Profile Picture
    177 on at

    Hi @adilei ,

     

    I'm using SharePoint as the data source, following the same approach as Angela. Here are the steps 

     

    1. Register an application on the Azure portal (https://portal.azure.com/).
    2. Copy the Application (client) ID and store it in Notepad.
    3. Set up Authentication:
    - In the Azure portal, under the registered application, navigate to "Authentication" and add a platform, selecting "Web".
    - Provide the URL for redirecting. This involves going back to Copilot Studio, navigating to Settings -> Security -> Authorization, selecting Manual for Custom website, and copying the Redirect URL.
    - Use this URL in Azure under Redirect URLs and select the required options. You may need to add additional URLs as necessary.
    4. Generate a Client Secret:
    - In the Azure portal, under your application, go to "Certificates & secrets" and create a new client secret.
    - Copy the value of the client secret and store it in Notepad.
    5. Fill in the client ID and client secret back in Copilot Studio.
    6. Configure API Permissions in the Azure Portal:
    - Grant admin consent.
    - Add permissions for Microsoft Graph, specifically Delegated permissions. Choose "openai profile," "Sites.Read.All," and "Files.Read.All".
    7. Update Copilot Studio with Scopes:
    - Back in Copilot Studio, add the permissions to the scope, including one for the site and one for files.

     

    It was working fine in the test canvas as well as in the demo site.

     

    Afert that, I uploaded new documents to the site and tried it around, but it didn't revert back with the response. It gives me the fallback all the times.

  • adilei Profile Picture
    on at

    Thanks. So just to be clear - you are still getting responses for your old documents? 

     

    It's only questions that expect content from the newly updated documents that do not get a response?

  • Kabilesh Profile Picture
    177 on at

    Hi @adilei ,

     

    Thanks for your reply. After uploading new documents, I'm not getting responses for either old or new documents.

  • adilei Profile Picture
    on at

    Hmmm..this seems puzzling. You change nothing, not the URL that the Gen Answers node is pointing to, nor the query itself, and you stop getting responses simply after uploading new files?

  • Kabilesh Profile Picture
    177 on at

    Seems strange, right? I didn't change anything ,not the URL in the Gen Answers node or the query itself. But after uploading new files, responses stopped.

  • Angela23 Profile Picture
    114 on at

    My solution has started to answer again since the new release came to Euarope yesterday and I enabled the dynamic channing and it helped. It is still not answering all I ask but getting much better than before

  • Angela23 Profile Picture
    114 on at

    And today its back to not working mode again 😞

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

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard