Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,445 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Working https://graph.microsoft.com/v1.0/me/drive/root/search(q='.mp3 or .acc')?select=name,id,webUrl
Here in q I want to pass multiple value for two its working I want to search four types of Files.
.mp3 .acc .m4a .wav
Not Working - https://graph.microsoft.com/v1.0/me/drive/root/search(q='.mp3 or .acc or .wav or .m4a')?select=name,id,webUrl
For this kind of search, you should use the search API. Here is a example to search your files.
POST https://graph.microsoft.com/v1.0/search/query
{
"requests": [
{
"entityTypes": [
"driveItem"
],
"query": {
"queryString": ".mp3 OR .wav OR .m4a"
}
}
]
}