Umar.H
Umar.H

Reputation: 23099

Filtering against lastModifiedDate throwing a 501 error

I have a list of JSON objects SharePoint document drive retrieved using Microsoft Graph. I'm trying append a ?$filter=lastModifiedDateTime ge 2019-10-01T20:42:15Z but it is returning a 501 error.

I've tried toying around with many different variations to no success, strangely, when I switch the filter to select it works, so not really sure what the issue is?

{
  "context": "https://graph.microsoft.com/v1.0/$metadata#sites('a')/drives('b')/items('c')/children",
  "value": [
    {
      "etag": "\"{id},x\"",
      "lastModifiedDateTime": "2019-10-01T20:42:15Z"
    }
  ]
}

Upvotes: 0

Views: 370

Answers (1)

Marc LaFleur
Marc LaFleur

Reputation: 33114

Graph doesn't support filtering a DriveItem collection. From the documentation:

This method supports the $expand, $select, $skipToken, $top and $orderby OData query parameters to customize the response.

Upvotes: 1

Related Questions