browseO365TeamConvChannels
BrowseO365TeamConvChannels returns a paginated list of Teams conversation channels for the given workload. When no snapshot is specified, browses live channels; when a snapshot is specified, browses channels in that 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 Teams workload. |
| snapshotFidOpt | UUID | Optional snapshot FID. When set, browses that snapshot. |
| excludeArchived (required) | Boolean! | Whether archived channels are omitted from results. Must be false when snapshotFidOpt is absent; must be true when present. |
| orgId (required) | UUID! | Org UUID. |
| channelMembershipTypeFilter (required) | ChannelMembershipType! | Filter on channel membership type. |
| nameFilter | String | Optional display-name substring filter. |
Returns
O365TeamConvChannelConnection!
Sample
query BrowseO365TeamConvChannels($snappableFid: UUID!, $excludeArchived: Boolean!, $orgId: UUID!, $channelMembershipTypeFilter: ChannelMembershipType!) {
browseO365TeamConvChannels(
snappableFid: $snappableFid
excludeArchived: $excludeArchived
orgId: $orgId
channelMembershipTypeFilter: $channelMembershipTypeFilter
first: 10
) {
nodes {
channelId
folderId
isArchived
membershipType
name
naturalId
}
pageInfo {
hasNextPage
endCursor
}
}
}
{
"data": {
"browseO365TeamConvChannels": {
"nodes": [
[
{
"channelId": "example-string",
"folderId": "example-string",
"isArchived": true,
"membershipType": "ALL",
"name": "example-string",
"naturalId": "example-string"
}
]
],
"pageInfo": {
"endCursor": "example-string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "example-string"
}
}
}
}