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 Search API
Microsoft Graph Search API
A Microsoft API that searches for information in email messages, returns messages ranked by relevance, and renders a dedicated search experience.
164 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Danstan Onyango 3,241 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"