Skip to content

browseTeamsChannels

Browse channels in a Teams files 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 FID for the workload.
snapshotFid (required) UUID! The ID of the snapshot.
orgId (required) UUID! Org UUID.
channelMembershipTypeFilter (required) ChannelMembershipType! Filter on channel membership type.
nameFilter String Optional display-name substring filter.

Returns

O365TeamsChannelConnection!

Sample

query BrowseTeamsChannels($snappableFid: UUID!, $snapshotFid: UUID!, $orgId: UUID!, $channelMembershipTypeFilter: ChannelMembershipType!) {
  browseTeamsChannels(
    snappableFid: $snappableFid
    snapshotFid: $snapshotFid
    orgId: $orgId
    channelMembershipTypeFilter: $channelMembershipTypeFilter
    first: 10
  ) {
    nodes {
      folderId
      folderName
      id
      isArchived
      membershipType
      name
      naturalId
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "snappableFid": "00000000-0000-0000-0000-000000000000",
  "snapshotFid": "00000000-0000-0000-0000-000000000000",
  "orgId": "00000000-0000-0000-0000-000000000000",
  "channelMembershipTypeFilter": "ALL"
}
{
  "data": {
    "browseTeamsChannels": {
      "nodes": [
        [
          {
            "folderId": "example-string",
            "folderName": "example-string",
            "id": "example-string",
            "isArchived": true,
            "membershipType": "ALL",
            "name": "example-string"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}