Skip to content

browseSharepointDrive

BrowseSharepointDriveFolderItems returns the contents (folders and files) of a SharePoint Drive folder within a snapshot.

Arguments

Argument Type Description
first Int Returns the first n elements from the list.
after String An opaque cursor returned from a previous query's endCursor field. Pass this value verbatim to retrieve the next page of results.
last Int Returns the last n elements from the list.
before String An opaque cursor returned from a previous query's startCursor field. Pass this value verbatim to retrieve the previous page of results.
snappableFid (required) UUID! The unique identifier for the SharePoint Drive workload.
snapshotFid (required) UUID! The ID of the snapshot.
orgId (required) UUID! Org UUID.
folderId String The folder to browse. Empty means the drive root.
sharepointDriveSearchFilter OnedriveSearchFilter Optional OneDrive-compatible search filter.
siteChildId String Optional sub-site ID for a library or list within the SharePoint site.
siteChildType SharePointDescendantType Optional SharePoint descendant type; defaults to LIBRARY.

Returns

O365OnedriveObjectConnection!

Sample

query BrowseSharepointDrive($snappableFid: UUID!, $snapshotFid: UUID!, $orgId: UUID!) {
  browseSharepointDrive(
    snappableFid: $snappableFid
    snapshotFid: $snapshotFid
    orgId: $orgId
    first: 10
  ) {
    nodes {
      channelFolderName
      channelMembershipType
      channelName
      createTime
      id
      modifiedTime
      name
      parentFolderId
      path
      size
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "snappableFid": "00000000-0000-0000-0000-000000000000",
  "snapshotFid": "00000000-0000-0000-0000-000000000000",
  "orgId": "00000000-0000-0000-0000-000000000000"
}
{
  "data": {
    "browseSharepointDrive": {
      "nodes": [
        [
          {
            "channelFolderName": "example-string",
            "channelMembershipType": "ALL",
            "channelName": "example-string",
            "createTime": "2024-01-01T00:00:00.000Z",
            "id": "example-string",
            "modifiedTime": "2024-01-01T00:00:00.000Z"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}