Msgraph file api - search or filter by lastModifiedTime

shankar 1 Reputation point
2020-10-06T15:52:33.947+00:00

Does msgraph file api support search or filter query by lastModifiedTime

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,296 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Matt Krause 1 Reputation point
    2020-10-07T05:49:48.67+00:00

    The documentation indicates that the only odata query parameters supported are $expand, $select, $skipToken, $top and $orderby.
    https://learn.microsoft.com/en-us/graph/api/driveitem-list-children?view=graph-rest-1.0&tabs=http#optional-query-parameters

    I've used $filter to work against the 'name' property, but in some quick testing using Graph Explorer 'lastModifiedDateTime' doesn't work.

    Unfortunately, the answer appears to be no.

    0 comments No comments

  2. Jarbas Horst 6 Reputation points MVP
    2020-10-09T22:18:10.293+00:00

    Hi @shankar ,

    I faced the same issue a couple of days ago. Unfortunately, it is not possible to filter by lastModifiedTime. However, it is possible to filter by Modified 😀

       https://graph.microsoft.com/v1.0/sites/example.sharepoint.com:/sites/development:/lists/5e6d49c5-b4a2-4fe0-9e08-15b6da8a929d/items?$filter=fields/Modified eq '2020-07-08T08:23:03Z'  
    

    Can you give it a try and let me know if it works?

    Regards
    Jarbas Horst

    0 comments No comments