FlowmageDocs

Create deal

BetaChanges data

Creates a deal in an ActiveCampaign pipeline.

Settings

SettingWhat it is
ConnectionRequiredThe ActiveCampaign connection the step signs in with.
TitleRequiredtext
Descriptiontext
Contact idA deal needs a contact or an account. Fill in at least one of the two.
Account idtext
Value, in centsActiveCampaign stores a deal's value in cents: 456.78 is written as 45678.
CurrencyA three-letter ISO code. The node sends it lowercased, as ActiveCampaign wants.
Pipeline idActiveCampaign calls a pipeline a deal group. Fill in a pipeline or a stage — the List pipelines node answers both ids.
Stage idtext
Owner idThe ActiveCampaign user the deal belongs to, unless the pipeline assigns one.
Chance of winning, in percentnumber
StatusActiveCampaign's own status number: 0 open, 1 won, 2 lost. Its list is on the deal-statuses page in the developer documentation.
Custom fieldsKeys are the deal custom field's id, never its label.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `activecampaign`)
titletext
descriptiontext
contactIdtext
accountIdtext
valuenumber, by default 0
currencytext, by default "eur"
pipelineIdtexta value from the vendor's own list
stageIdtext
ownerIdtext
percentnumber, by default 0
statusnumber, by default 0
fieldsobject of text, by default {}

Output

FieldType
dealIdstring
dealobject
Sample output, and the expression for each field
  • deal
    • id"21"
  • dealId"21"

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": {
    "accountId": "",
    "connection": "<connection id>",
    "contactId": "",
    "currency": "eur",
    "description": "",
    "fields": {},
    "ownerId": "",
    "percent": 0,
    "pipelineId": "",
    "stageId": "",
    "status": 0,
    "title": "<title>",
    "value": 0
  },
  "label": "Create deal",
  "type": "activecampaign.createDeal",
  "version": 1
}