How to use Query parameter of Office365 Find Files And Folders

I’ve seen this question posted before and to my knowledge it has not been answered.

How is the Query parameter of Office365 Find Files And Folders used? The only examples I have seen involve simplistic filtering on a single static text value. How do you use it to search for something like "all the files and folders that contain the text “messages_1”? The documentation says to see driveItem resource type - Microsoft Graph v1.0 | Microsoft Docs which describes the Microsoft driveItem object. Following the links on that page, I have tried various odata queries like

$filter=startsWith(name,‘messages_1’)

to no avail.

Can someone who has figured this out please post here to describe the syntax that Find Files And Folders is expecting in that Query parameter?

1 Like

Hey @Bill_Richardson

Could you please try the below options please…

displayName:<YourFileName>
name:<YourFileName>

Thanks
#nK