FlowmageDocs

Subscribe or unsubscribe

BetaChanges data

Subscribes an ActiveCampaign contact to a list, or unsubscribes it.

Settings

SettingWhat it is
ConnectionRequiredThe ActiveCampaign connection the step signs in with.
Contact idRequiredtext
List idRequiredThe List mailing lists node answers this id.
What to doSubscribing 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-subscribeMarks the membership as a deliberate re-subscribe in ActiveCampaign.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `activecampaign`)
contactIdtext
listIdtexta value from the vendor's own list
action"subscribe" or "unsubscribe", by default "subscribe"
isResubscribetrue/false, by default falseused when `action` is "subscribe"

Output

FieldType
contactListList membershipobject
subscribedSubscribed after this callboolean
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
}