query BroadcastSendTargetRecipients($input: BroadcastSendTargetRecipientsInput!) {
broadcastSendTargetRecipients(input: $input) {
count
emptyReason
recipients {
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
edges {
cursor
node {
__typename
}
}
}
}
}{
"input": {
"type": "SLACK",
"sendTarget": {}
}
}{
"data": {
"broadcastSendTargetRecipients": {
"count": 1,
"emptyReason": "NO_TENANTS_MATCHED",
"recipients": {
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"__typename": "ConnectedSlackChannel"
}
}
]
}
}
}
}broadcastSendTargetRecipients
Who a send target resolves to right now. Takes the target rather than an id, so it answers for a filter still being written — before an audience is saved, or before a broadcast’s target is committed — as readily as for one about to be sent.
Point-in-time: the number moves as tenants, tiers and tenant fields change, and as channels are connected or disabled. Resolved through the same path a send uses, so it is what would actually be delivered to rather than an estimate assembled another way.
Resolves the target on every call. Requires the broadcast:read permission.
broadcastSendTargetRecipients(input: BroadcastSendTargetRecipientsInput!): BroadcastSendTargetRecipients!Arguments
Returns
Recipients resolved. Exact: there is no ceiling on what a target may resolve to.
Why count is zero. Null whenever it is not.
The resolved recipients, in the order the count above counted them. searchQuery narrows these rows
by name without changing count, which is how large the audience is rather than how much of it is
being shown.
query BroadcastSendTargetRecipients($input: BroadcastSendTargetRecipientsInput!) {
broadcastSendTargetRecipients(input: $input) {
count
emptyReason
recipients {
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
edges {
cursor
node {
__typename
}
}
}
}
}{
"input": {
"type": "SLACK",
"sendTarget": {}
}
}{
"data": {
"broadcastSendTargetRecipients": {
"count": 1,
"emptyReason": "NO_TENANTS_MATCHED",
"recipients": {
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"__typename": "ConnectedSlackChannel"
}
}
]
}
}
}
}Was this page helpful?

