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 / 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
    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
    498 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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard