I am trying to do a graph search query that bring the last 20 items updated from a specific site ordered by the lastModifiedDateTime, and if possible also filtered by a custom field that they should have.

this is the query i have

POST https://graph.microsoft.com/v1.0/search/query
        "Requests": [
                "entityTypes": [
                "query": {
                    "queryString": "isDocument:true AND siteId:<site-id> "

in this example the when i try to add the siteid the query breaks and brings no result

  • Do you have site URL with you? If yes, you can try using Path as well. Check this: sharepoint.stackexchange.com/questions/310922/… and let me know if it works for you. Commented Mar 20 at 6:19
  • i do, i was working with path but i had to do a go around to get it with the site id, so i was looking to do it by using the site id
    – rread
    Commented Mar 20 at 13:47
  • So, using Path will work for you or not? Commented Mar 20 at 13:49


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.