Subscribe or unsubscribe
BetaChanges data
Subscribes an ActiveCampaign contact to a list, or unsubscribes it.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The ActiveCampaign connection the step signs in with. |
| Contact idRequired | text |
| List idRequired | The List mailing lists node answers this id. |
| What to do | Subscribing a contact who is currently unsubscribed puts somebody back on a list they took themselves off. ActiveCampaign allows it and warns about it. |
| Record this as a re-subscribe | Marks the membership as a deliberate re-subscribe in ActiveCampaign. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `activecampaign`) |
contactId | text |
listId | texta value from the vendor's own list |
action | "subscribe" or "unsubscribe", by default "subscribe" |
isResubscribe | true/false, by default falseused when `action` is "subscribe" |
Output
| Field | Type |
|---|---|
contactListList membership | object |
subscribedSubscribed after this call | boolean |
Sample output, and the expression for each field
- contactList
- id"5"
- subscribedtrue
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": {
"action": "subscribe",
"connection": "<connection id>",
"contactId": "<contact id>",
"isResubscribe": false,
"listId": "<list id>"
},
"label": "Subscribe or unsubscribe",
"type": "activecampaign.setListSubscription",
"version": 1
}