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 / Built a PVA and need t...
Copilot Studio
Unanswered

Built a PVA and need to link sharepoint documents

(0) ShareShare
ReportReport
Posted on by 29

Hello,

 

I am brand new to this and i have created a PVA bot. I been doing research and tried a few different ways to implement when a user asks a bot a for a document and searchs the sharepoint and returns back results that are similar to the documents they are looking for?

 

If anyone has any examples of step by to set up so  I can get an Idea that would be greatly appreciated.

 

Also if anyone has an example for a topic that links or calls to the automate flow for an example too.

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

    Below is what I have setup so far. Any help would be appreciated.

     

    DEKEITH_0-1691508028508.png

    DEKEITH_1-1691508060789.png 

    DEKEITH_0-1691509112930.png

     

     

  • jjustus Profile Picture
    13 on at

    I'm having this same issue, I'm not sure when this changed, but on Newly created chatbots I no longer am seeing the hyperlink button when clicking within Topics like how it formerly appeared...I see that the above solution would likely work, but it seems like a massive amount of extra effort compaired to just having a hyperlink button like how the bots used to....see pics below

    old chatbot:

    jjustus_0-1691529862411.png



    new chatbot:

    jjustus_1-1691529869510.png

     

  • DEKEITH Profile Picture
    29 on at

    Thanks @jjustus. I am shocked that there isnt much information on this or how to do it.

  • HenryJammes Profile Picture
    on at

    For links, you can use Markdown to format URLs as desired.

    E.g. [Bing](https://www.bing.com) displays as Bing.

     

    One way to search SharePoint and returns results to the user is to use Generative Answers:

    Use content on SharePoint or OneDrive for Business for generative answers - Power Virtual Agents | Microsoft Learn

     

    I also wrote that post on using the Graph API with PVA:

    Solved: Calling the Graph API to do a document search in P... - Power Platform Community (microsoft.com)

     

  • jjustus Profile Picture
    13 on at

    Hello HenryJammes,

    Could you expand further on how to use the generative answer? I'm not understanding what to enter in the 'input' section?

    jjustus_0-1691596919797.png

    but --- why was the simple hyperlink button removed? it was so easy before and now this seems to be a weirdly cumbersome process just to simply have something linked?

  • DEKEITH Profile Picture
    29 on at

    HenryJammes,

     

    I made the flow and it runs successfully but I think I have the Tigger, actions in the topic wrong as it doesnt return the link of the document back. Can you take a look and see please? I replied back to my post.  I ran my flow and it worked correctly but when testing with PVA Bot it didnt return back the sharepoint link of the document? Any help would be greatly appreciated.

     

    The Flow(tested and works). Should the flow be automatic or instant?

     

    DEKEITH_4-1691698980727.png

     

     

    DEKEITH_1-1691697027813.png

     

    Topic for PVA BOT

    DEKEITH_0-1691701049691.png

     

     

  • remidyon Profile Picture
    on at

    your trigger is correct: it will take the value from PVA and return a value after execution. What does the flow runs tell you when you check in power automate? Does it find a document? In your case you need to look at the flow run to understand what is happening (but you are on the right track)

  • DEKEITH Profile Picture
    29 on at

    Remi,

     

    below is the flow test just by it self with out the PVA

    DEKEITH_0-1691716803450.png

     

    Here the PVA part it doesnt bring back any document link

    DEKEITH_1-1691716922742.png

     

  • HenryJammes Profile Picture
    on at

    Have you checked in the flow run that you actually return a URL to the PVA?

    Can you also check the variable values at run time in PVA?

    I suspect you're not returning a URL.

  • remidyon Profile Picture
    on at

    @DEKEITH I can see in your screenshot that the last step of your flow has a gray "X" icon on it - which means it was not executed: probably because previous step did not return any value. Can you expand each section of your flow run and see which step did not return the expected data? My guess is there is something wrong in the "get file" or the "apply to each" loop 

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

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard