Find deals
Finds ActiveCampaign deals by stage, pipeline, owner, tag, value or free text.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The ActiveCampaign connection the step signs in with. |
| Free text | Matches the deal and the contact it belongs to. |
| Search only in | One field name, as ActiveCampaign spells it. Empty searches every field. |
| Title contains | text |
| In stage | text |
| In pipeline | ActiveCampaign calls a pipeline a deal group. |
| Status | ActiveCampaign's own status number: 0 open, 1 won, 2 lost. Empty is any. |
| Owner id | text |
| With tag id | text |
| Value from, in cents | text |
| to | text |
| Created after | text |
| Created before | text |
| Updated after | text |
| Updated before | text |
| Order by | "none" or "title" or "value" or "created" or "contactName" or "contactOrganisation" |
| Direction | "asc" or "desc" |
| Deals per call | 1 to 100. ActiveCampaign's own default is 20. |
| Start at | Zero-based. Ignored while every page is fetched. |
| Fetch every page | Walks the whole result, and refuses past 5,000 deals rather than answering a short list. The account shares five requests a second. |
| Cursor | Paste a previous run's Next cursor to read the page after it. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `activecampaign`) |
search | text |
searchField | textused when `search` is not "" |
title | text |
stageId | text |
pipelineId | texta value from the vendor's own list |
status | text |
ownerId | text |
tagId | text |
minimumValue | text |
maximumValue | text |
createdAfter | text |
createdBefore | text |
updatedAfter | text |
updatedBefore | text |
sortBy | "none" or "title" or "value" or "created" or "contactName" or "contactOrganisation", by default "none" |
sortDirection | "asc" or "desc", by default "asc" |
limit | number, by default 100 |
offset | number, by default 0 |
returnAll | true/false, by default false |
cursor | text |
Output
| Field | Type |
|---|---|
deals | array |
dealCountDeals in this answer | number |
totalDeals the search matches | number |
hasMoreMore deals are waiting | boolean |
nextOffsetOffset for the next page | number |
relatedSide-loaded relations | object |
nextCursorCursor for the next page | string |
Sample output, and the expression for each field
- dealCount0
- deals[]
- hasMorefalse
- nextOffset0
- related{}
- total0
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"createdAfter": "",
"createdBefore": "",
"cursor": "",
"limit": 100,
"maximumValue": "",
"minimumValue": "",
"offset": 0,
"ownerId": "",
"pipelineId": "",
"returnAll": false,
"search": "",
"searchField": "",
"sortBy": "none",
"sortDirection": "asc",
"stageId": "",
"status": "",
"tagId": "",
"title": "",
"updatedAfter": "",
"updatedBefore": ""
},
"label": "Find deals",
"type": "activecampaign.listDeals",
"version": 2
}Older versions
A flow that already has this version keeps running it. A new step always gets the newest.
Version 1
| Setting | What it is |
|---|---|
| ConnectionRequired | The ActiveCampaign connection the step signs in with. |
| Free text | Matches the deal and the contact it belongs to. |
| Search only in | One field name, as ActiveCampaign spells it. Empty searches every field. |
| Title contains | text |
| In stage | text |
| In pipeline | ActiveCampaign calls a pipeline a deal group. |
| Status | ActiveCampaign's own status number: 0 open, 1 won, 2 lost. Empty is any. |
| Owner id | text |
| With tag id | text |
| Value from, in cents | text |
| to | text |
| Created after | text |
| Created before | text |
| Updated after | text |
| Updated before | text |
| Order by | "none" or "title" or "value" or "created" or "contactName" or "contactOrganisation" |
| Direction | "asc" or "desc" |
| Deals per call | 1 to 100. ActiveCampaign's own default is 20. |
| Start at | Zero-based. Ignored while every page is fetched. |
| Fetch every page | Walks the whole result, and refuses past 5,000 deals rather than answering a short list. The account shares five requests a second. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `activecampaign`) |
search | text |
searchField | textused when `search` is not "" |
title | text |
stageId | text |
pipelineId | texta value from the vendor's own list |
status | text |
ownerId | text |
tagId | text |
minimumValue | text |
maximumValue | text |
createdAfter | text |
createdBefore | text |
updatedAfter | text |
updatedBefore | text |
sortBy | "none" or "title" or "value" or "created" or "contactName" or "contactOrganisation", by default "none" |
sortDirection | "asc" or "desc", by default "asc" |
limit | number, by default 100 |
offset | number, by default 0 |
returnAll | true/false, by default false |