OneDrive - Search My Drive - or condition for multiple type of file

Harry Potter 1 Reputation point

Working'.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 -'.mp3 or .acc or .wav or .m4a')?select=name,id,webUrl

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,050 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Danstan Onyango 3,816 Reputation points Microsoft Employee

    For this kind of search, you should use the search API. Here is a example to search your files.

        "requests": [  
                "entityTypes": [  
                "query": {  
                    "queryString": ".mp3 OR .wav OR .m4a"  
    0 comments No comments