Skip to content

snappableTeamsConversationsSearch

SearchTeamsConversations returns the per-channel conversation post counts for the given Teams workload. For each requested channel it issues a count-only search (no-snapshot or snapshot-scoped) and aggregates the results into one O365TeamsConversations entry per channel.

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 Teams workload.
orgId (required) UUID! Organization scope for the search.
snapshotFidOpt UUID Optional snapshot FID. When set, the search is scoped to this snapshot.
teamConvChannels (required) [O365TeamConvChannelInput!]! The channels to compute conversation counts for (1..10 entries).
teamsConversationsSearchFilter TeamsConversationsSearchFilter Optional conversation search filter (posted time/by, keyword, etc.).

Returns

O365TeamsConversationsConnection!

Sample

query SnappableTeamsConversationsSearch($snappableFid: UUID!, $orgId: UUID!, $teamConvChannels: [O365TeamConvChannelInput!]!) {
  snappableTeamsConversationsSearch(
    snappableFid: $snappableFid
    orgId: $orgId
    teamConvChannels: $teamConvChannels
    first: 10
  ) {
    nodes {
      channelId
      channelName
      channelPostCount
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "snappableFid": "00000000-0000-0000-0000-000000000000",
  "orgId": "00000000-0000-0000-0000-000000000000",
  "teamConvChannels": [
    {
      "folderId": "example-string",
      "membershipType": "ALL",
      "name": "example-string",
      "naturalId": "example-string"
    }
  ]
}
{
  "data": {
    "snappableTeamsConversationsSearch": {
      "nodes": [
        [
          {
            "channelId": "example-string",
            "channelName": "example-string",
            "channelPostCount": 0
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}