Skip to content

sharepointSiteSearch

Search site and descendant objects.

Arguments

Argument Type Description
first Int Returns the first n elements from the list.
after String Returns the elements in the list that occur after the specified cursor.
siteFid (required) UUID! The fid for the site.
orgId (required) UUID! Org UUID.
sharepointSiteSearchFilter SharePointSearchFilter The filter for site search.

Returns

O365FullSpObjectConnection!

Sample

query SharepointSiteSearch($siteFid: UUID!, $orgId: UUID!) {
  sharepointSiteSearch(
    siteFid: $siteFid
    orgId: $orgId
    first: 10
  ) {
    nodes {
      createTime
      fid
      modifiedTime
      name
      objectType
      parentId
      sharepointId
      snapshotId
      snapshotNum
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "siteFid": "00000000-0000-0000-0000-000000000000",
  "orgId": "00000000-0000-0000-0000-000000000000"
}
{
  "data": {
    "sharepointSiteSearch": {
      "nodes": [
        [
          {
            "createTime": "2024-01-01T00:00:00.000Z",
            "fid": "example-string",
            "modifiedTime": "2024-01-01T00:00:00.000Z",
            "name": "example-string",
            "objectType": "APP_CATALOG",
            "parentId": "example-string"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}