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 / Wildcard in Search Que...
Power Automate
Unanswered

Wildcard in Search Query for OneDrive Find Files in Folder By Path

(0) ShareShare
ReportReport
Posted on by 58

Hi there,

 

My aim is to return a list of all the files in a OneDrive folder, and then I will use a filter to select only those files that are relevant to the specific actions I want to perform.

 

I'm using the OneDrive "Find Files in folder by Path" as this appears to be the only method that will accept a variable as the folder path. All the other OneDrive "list files" methods require the unique Path ID and although I see there are ways in which to Get Metadata and then work from there, this route has proven too complex for now.

 

The trouble is that the "Find Files in folder by path" has a mandatory "Search Query" field. Ideally I'd like to leave this blank, but given that it is mandatory is there any way in which I can use a wildcard to simply return all files?OneDriveSearchQuery.PNG

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

    Hi @wi11iamr ,

     

    Unfortunately, searching is phrase based and does not support wildcards or similar search augmentations.

     

    Best Regards,

  • Spols Profile Picture
    14 on at

    Hi, 

     

    I found a workaround

    I put * on query to have all file and a condition just after to check if the fileName is correct or not

  • vasoftball5 Profile Picture
    8 on at

    Our experience was that using * did not work.  But we found that *.* will work.  

  • jiwhite Profile Picture
    500 on at

    That gives me the error:

    {
      "status"401,
      "message""A potentially dangerous Request.Path value was detected from the client (*).",
      "source""api.connectorp.svc.ms"
    }

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

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard