query Opportunities {
opportunities {
continuationCursor
edges {
cursor
node {
actualValue {
__typename
}
bookingLink {
__typename
}
call {
__typename
}
callStatus
closedAt
createdAt
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
scanLimited
totalCount
}
}{
"data": {
"opportunities": {
"continuationCursor": "string",
"edges": [
{
"cursor": "string",
"node": {
"actualValue": {
"__typename": "Money"
},
"bookingLink": {
"__typename": "BookingLink"
},
"call": {
"__typename": "Call"
},
"callStatus": "cancelled",
"closedAt": "string",
"createdAt": "string"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"scanLimited": true,
"totalCount": "value"
}
}
}opportunities
List opportunities (booking calls viewed as deals) with filters and pagination.
The stage is derived from the lead’s call history using the dashboard pipeline rules. A stage search reads at most 500 booking calls to fill a page. A short or empty page can still have more results to search. When scanLimited is true, pass continuationCursor as after to keep searching. pageInfo.endCursor always identifies the last returned edge.
opportunities(after: String, first: Number, fromDate: String, leadId: String, stage: OpportunityStage, toDate: String): OpportunityConnection!Arguments
Keep calls scheduled on/after this date (ISO 8601).
Keep only opportunities belonging to this lead.
Filter by derived pipeline stage within a bounded search. See scanLimited and continuationCursor.
Keep calls scheduled on/before this date (ISO 8601).
Returns
Cursor for the next search page. Pass it as after when pageInfo.hasNextPage is true. When scanLimited is true, this can advance beyond pageInfo.endCursor, including an empty page.
True when the stage search reached its 500-row limit before filling this page. Continue with continuationCursor to search the remaining rows.
query Opportunities {
opportunities {
continuationCursor
edges {
cursor
node {
actualValue {
__typename
}
bookingLink {
__typename
}
call {
__typename
}
callStatus
closedAt
createdAt
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
scanLimited
totalCount
}
}{
"data": {
"opportunities": {
"continuationCursor": "string",
"edges": [
{
"cursor": "string",
"node": {
"actualValue": {
"__typename": "Money"
},
"bookingLink": {
"__typename": "BookingLink"
},
"call": {
"__typename": "Call"
},
"callStatus": "cancelled",
"closedAt": "string",
"createdAt": "string"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
},
"scanLimited": true,
"totalCount": "value"
}
}
}