Peter Wilson
Peter Wilson

Reputation: 4319

Microsoft Graph | combining both search and filtering on one API call

I am working on integrating MS Graph inside my application and one scenario I have to list files from OneDrive with search, filtering and sorting functionality but the API listed on the official docs doesn't work

Currently I am calling 3 APIs to make search, filtering and sorting work together.

Note: when I tried the API listed on the official docs I got this error enter image description here

Upvotes: 0

Views: 173

Answers (1)

Fabien Sartori
Fabien Sartori

Reputation: 235

I think that Microsoft Graph API doesn't support filtering on files or folder directly. Try to use the Onedrive Rest Api like this

GET: drive/root/children?filter=folder+ne+null

Upvotes: 1

Related Questions