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 / Power Automate / Search for a file in s...
Power Automate
Unanswered

Search for a file in sharepoint and attached it in chat using Copilot studio and Power Automate

(0) ShareShare
ReportReport
Posted on by 5

I'm looking To create a topic that enables Copilot to trigger a search query for a document in SharePoint and provide the matching document in the chat.

I've created a Workflow and a topic, But the issue is that the Filter is not working correctly and I get Empty Results.

Please check the screenshot for the work I did,

your help is much appreciated

Flow 1.png

Flow 2.png

Flow 3.png

Flow 4.png

Flow 5.png

topic flow.png



Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @MG94 ,

     

    The input of 'Apply to each' action is wrong. You initialize an empty array variable and use it as input to the loop, which causes the loop to never execute, so the output is empty.

    Please try this

    vxiaochenmsft_0-1716432073023.png

     

     

    Best Regards,

    Wearsky

  • MG94 Profile Picture
    5 on at

    Hi @v-xiaochen-msft 

    Thanks for the assist, Now i can have outputs, But it looks like I need to organize it and make the Output clear , it gave the correct files name but links are not working and gave error : 
    Please check screenshot below and help me further.

    result 1.png

    Result 2.png

    Link result.png

     

  • MG94 Profile Picture
    5 on at

    Any help about this one ?

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard