FlowmageDocs

Add contact

BetaChanges data

Adds a new contact to an audience and fails when the address is already there.

Settings

SettingWhat it is
ConnectionRequiredThe Mailchimp connection the step signs in with.
Audience idPicked from the list Mailchimp offers.
E-mail addresstext
StatusUse Add or update contact unless you specifically want the flow to fail when the address is already there.
TagsComma separated. This is the one thing Add or update contact cannot do: tags at creation.
E-mail format"" or "html" or "text"
Merge fieldsKeyed by the merge TAG — FNAME, not First name.
Interest groupsKeyed by the interest id — the List interests node gives you the ids.
Languagetext
VIP"" or "on" or "off"
Latitudetext
Longitudetext
Marketing permissionsOne object per permission; the audience defines the ids.
Sign-up IP addresstext
Sign-up momenttext
Opt-in IP addresstext
Opt-in momenttext
Accept a missing merge fieldAccepts the contact even when a required merge field is missing.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `mailchimp`)
audienceIdtexta value from the vendor's own list
emailtext
status"subscribed" or "unsubscribed" or "pending" or "transactional" or "cleaned", by default "subscribed"
tagstext
emailType"" or "html" or "text"
mergeFieldsobject of text, by default {}
interestsobject of true/false, by default {}
languagetext
vip"" or "on" or "off"
latitudetext
longitudetext
marketingPermissionslist of any JSON, by default []
ipSignuptext
timestampSignuptext
ipOpttext
timestampOpttext
skipMergeValidationtrue/false, by default false

Output

FieldType
memberContactobject
memberIdContact idstring
emailE-mail addressstring
statusstring
tagsarray
mergeFieldsobject
Sample output, and the expression for each field
  • email"person@example.com"
  • member
    • email_address"person@example.com"
    • id"7de8517bce4457e8390aa4006a1880fb"
  • memberId"7de8517bce4457e8390aa4006a1880fb"
  • mergeFields{}
  • status"subscribed"
  • tags[]

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": {
    "audienceId": "",
    "connection": "<connection id>",
    "email": "",
    "emailType": "",
    "interests": {},
    "ipOpt": "",
    "ipSignup": "",
    "language": "",
    "latitude": "",
    "longitude": "",
    "marketingPermissions": [],
    "mergeFields": {},
    "skipMergeValidation": false,
    "status": "subscribed",
    "tags": "",
    "timestampOpt": "",
    "timestampSignup": "",
    "vip": ""
  },
  "label": "Add contact",
  "type": "mailchimp.addMember",
  "version": 1
}