Doodool_Tala
Doodool_Tala

Reputation: 447

Search for files in OneDrive using Graph API endpoint broken

I'm currently building an application to pull files from OneDrive using the Microsoft Graph API.

There seems to a problem with the /drive endpoint when trying to make a search. To see the error, you can use the Graph Explorer without logging in. Under sample queries, go to the OneDrive folder and choose "search my OneDrive". The result is a Bad Request - 400.

At first I thought I was making the bad request, but after trying with Microsoft's own sample query and sample data, I see that the problem goes a bit further.

How do we inform Microsoft? Is the problem definitely from them? If not, what am I doing wrong?

Thanks!

Upvotes: 0

Views: 541

Answers (1)

Shiva Keshav Varma
Shiva Keshav Varma

Reputation: 3595

You can use the below call by logging into the Graph explorer.

https://graph.microsoft.com/v1.0/me/drive/root/search(q='A') 

In search method you can put any of your relevant driveItem names and see.

It worked for me.

Upvotes: 1

Related Questions