Create or update contact
BetaChanges data
Creates an ActiveCampaign contact, or updates the one with this e-mail address.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The ActiveCampaign connection the step signs in with. |
| E-mail addressRequired | The address ActiveCampaign looks the contact up by, and creates it under. |
| First name | text |
| Last name | text |
| Phone | text |
| Custom fields | Keys are the field id from the List custom fields node — ActiveCampaign does not accept a field's label here. |
| Tags | Comma-separated tag names. Names that do not exist yet are created. A tag name may not contain a comma. |
| List id | Subscribes the contact to this list in the same call. |
| Welcome autoresponder | ActiveCampaign rejects a call that asks for both, so only the choice you make here is sent. |
| Account name | Links the contact to this CRM account. Account names are unique in ActiveCampaign. |
| Create the account when it does not exist | true/false |
| Opt-in IP address | The address the person opted in from. ActiveCampaign accepts IPv4 only. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `activecampaign`) |
email | textits `{{ }}` must give a string |
firstName | text |
lastName | text |
phone | text |
fieldValues | object of text, by default {} |
tags | text |
listId | text |
listAutoresponder | "default" or "send" or "suppress", by default "default"used when `listId` is not "" |
accountName | text |
createAccountIfMissing | true/false, by default falseused when `accountName` is not "" |
optInIp | text |
Output
| Field | Type |
|---|---|
contactId | string |
contact | object |
fieldValuesCustom field values | array |
Sample output, and the expression for each field
- contact{}
- contactId"7"
- fieldValues[]
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": {
"accountName": "",
"connection": "<connection id>",
"createAccountIfMissing": false,
"email": "<e-mail address>",
"fieldValues": {},
"firstName": "",
"lastName": "",
"listAutoresponder": "default",
"listId": "",
"optInIp": "",
"phone": "",
"tags": ""
},
"label": "Create or update contact",
"type": "activecampaign.upsertContact",
"version": 1
}