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 / Power Automate / PVA Return Sharepoint ...
Power Automate
Unanswered

PVA Return Sharepoint Files unable to Return Items

(0) ShareShare
ReportReport
Posted on by 508

A little frustrated, trying to get this flow working all day.  I was trying to use @renatromano flow so I could replicate but but cannot get anything to return.  I am trying to crate a PVA bot that would return a list of files based off of search input.  So I would ask the bot to look for files inside of sharepiont. I would enter a text search, which could be a partial of the file OR Contains.  And then the bot would reutrn a list of files and their corresponding folder if possible.  Can someone kindly look at my flow to see where I am going wrong.  12 hours of work and still not results. Please help! 

1. 

VeeLearnMSFT_0-1651453584108.png

2. 

VeeLearnMSFT_1-1651453662347.png

Nothing is returing back.  I spent all day trying to get this to work. Im not ready to throw in the towel as I know I am way too new at this. I am stuck and I cannot get a search to work to return files.

 

VeeLearnMSFT_2-1651453884140.png

 

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,690 Moderator on at

    Can we please see the inside of your Append to String Variable? 

    Your error says there is an issue with that action.

  • VeeLearnMSFT Profile Picture
    508 on at

    I see the data coming in to the Filter Array but it does not show any output. It just seems to stop there.

     

     

    VeeLearnMSFT_2-1651488041857.png

    VeeLearnMSFT_3-1651488347820.png

     

    VeeLearnMSFT_4-1651488439338.png

     

  • VeeLearnMSFT Profile Picture
    508 on at

    I changed the flow slightly.  I got rid of the filter array and filtering right using the filter query:  

    VeeLearnMSFT_0-1651580635926.png

    VeeLearnMSFT_1-1651580671707.png

    It came back with 10 records:

    VeeLearnMSFT_2-1651580704397.png

    Now the flow is returning values all the way to the agent but the agent is not returning anythign in the chat window. I dont understand why, is it the type of data that is not in the format it requires?

    VeeLearnMSFT_0-1651580942679.png

     

     

    Here is my error from the bot:

    VeeLearnMSFT_1-1651580973817.png

     

  • Rhiassuring Profile Picture
    8,690 Moderator on at

    In your last screenshot, it looks like you are appending the variable "Link" to itself, without any content in it..?

  • VeeLearnMSFT Profile Picture
    508 on at

    what is the proper way to do it...Do i need to put the Name instead of link?  Can you show me a screenshot of what it should look like?  Sorry I am just too knew and I am not quite sure how to fix it.

  • Rhiassuring Profile Picture
    8,690 Moderator on at

    It's okay, Vee, we'll get there.

     

    So right now, you are filling a blank variable (Link) with itself - which is blank. So ... blank!

    Instead, try this: 

    Rhiassuring_2-1651612253336.png

     

    Where I have txtTable, you'll have your Link variable - where I have "Link to Item", you'll select the Dynamic Content from your Get Files output, and you should have the same thing to select, "Link to Item". Now, we're storing that link in the variable - and since it's an APPEND to string variable, it's going to put it right alongside whatever other values we add. 

     

    Note I have a "; " after - a semi-colon, and a space - because the Append to String Variable action will literally put them sidebyside unless we tell it not to! 

    Also, a tip: I recommend (and this is a personal thing, of course, I am sure we will have plenty of folks  here disagree) naming variables with a prefix. This helps more easily identify their purpose, so you won't see "Link" and wonder what kind of variable it is.  Examples: intSharePointID, txtNameOfDoc, arrDepartments...  (some people prefer str over txt, which I get - txt is a habit for me.) 

  • VeeLearnMSFT Profile Picture
    508 on at

    I am still missing something. I apologize if am a severe bother 😞

    This is part of my flow revised:

     

    VeeLearnMSFT_2-1651614597725.png

     

    VeeLearnMSFT_1-1651614576147.png

    Here is what it returned: I see the 10 items coming in...but see further below.

    VeeLearnMSFT_5-1651615026448.png

     

    VeeLearnMSFT_3-1651614882804.png

    VeeLearnMSFT_4-1651614893257.png

    Am I getting close?

     

  • Rhiassuring Profile Picture
    8,690 Moderator on at

    Errrr.. hard to tell. I don't know what "Kada" is, at all... 

    And, for 'txtTable' - that will still be your variable called Link, you don't need to rename it to what I've used 😛 

    Let me give a test on my side, and I'll report back in a sec.... I've never used a chat bot before.


  • VeeLearnMSFT Profile Picture
    508 on at

    I know but I wanted to impress you 😞 so I am passing a text string through the bot which is the name of the file.  The file contains Kadaj in side of it.  It is pulling all instances matching Kadaj string.  But what I dont get is why is it bunching kadaj and the link to the file right next to each other.  I just thought  it was weird and perhaps this is why it stopped.  I mean I see the links being outputed in the body of the return to virtual agent box.  I just dont know why its not returning anything.  

     

    VeeLearnMSFT_0-1651622342120.png

     

  • Verified answer
    Rhiassuring Profile Picture
    8,690 Moderator on at

    WELP - I've just learned something from you, and also from a past @Pstork1 post.

    Just built my first bot, and, figured out the issue here!

    When passing links back to the PVA, you want to use the format of [TITLE](link). 

    Check this out:  https://docs.microsoft.com/en-us/power-automate/approvals-markdown-support#links

    My string looked like this:

    Rhiassuring_3-1651634894013.png

     

     

     

    And here's the output:

    Rhiassuring_2-1651634874448.png

     

    Uh oh, these bots are fun...

    ...oh and $1280 a month apparently. ..WELP.

     

     

     

     

     

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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard