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 / Integration problem be...
Copilot Studio
Answered

Integration problem between SharePoint and bot - Issue with files

(0) ShareShare
ReportReport
Posted on by 13

Hi,

 

I'd like to create a bot that uses generative answers using public sites and a SharePoint, including both pages and files. Everything works fine except for SharePoint files.

 

Here an example.
This is a SP page:

SP page.png

and this is the SP file:
SP folder.png

SP file content.png


When I ask to my bot about Mario's pen, it is aware of it, but when I ask about his car, it doesn't give me an answer:

Bot answers.png

I tried the solutions in Microsoft Documentation with the Manual Authorization and Files.Read.All Sites.Read.All in the scope, but it didn't work.
I also checked other community post, but the solution was not helpful to me.

 

In addition I can give you informations concerns files authorization, but it seems to be correct.

SP file content Authorization.png

 

Can you help me, please? Thank you.

I have the same question (0)
  • adilei Profile Picture
    Microsoft Employee on at

    1. Can you share the configuration of your app registration and copilot authentication settings?

     

    2. Run your queries via Graph Explorer and see if any results are returned: Re: PVA Generative Answers and no content from Sha... - Power Platform Community (microsoft.com)

  • Gianfrancesco Profile Picture
    13 on at

    Hi,

     

    I followed these steps for the settings:

    App Authentication.png

    App Permissions.png

    App Scopes.png

    Bot Authentication.png

     

    Here the Post with Graph Explorer:

    GraphPost.png

    I don't know if it's correct.

     

    Let me know. Thank you so much.

  • adilei Profile Picture
    Microsoft Employee on at

    Graph explorer should help you test whether Graph API is returning results. You should change SEARCH TERMS with the actual terms you are searching for 🙂

  • Gianfrancesco Profile Picture
    13 on at

    Yes, but if there is an authorization issue, the string doesn't matter, right? Maybe it doesn't give a result, but I think I have to solve the authorization issue. Have you got any idea how to solve my problem?

    Thank you

  • adilei Profile Picture
    Microsoft Employee on at

    Sorry, didn't see the "forbidden" error.  You probably need to work with whomever it is who has admin permissions on the Graph Explorer app in your tenant (under "Enterprise Applications").

  • Verified answer
    Gianfrancesco Profile Picture
    13 on at

    I've solved the issue.

    The mistake was about the file format. In this link I found an information about supported file format:

    Gianfrancesco_0-1702978521942.png

     

    I replaced the txt file with a docx and my Copilot bot was able to find it:

    Gianfrancesco_1-1702978756197.png

     

    Thank you for your support.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 619

#2
chiaraalina Profile Picture

chiaraalina 171 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 143

Last 30 days Overall leaderboard