FlowmageDocs

Add or update contact

BetaChanges data

Adds a contact to an audience, or updates the one already there.

Settings

SettingWhat it is
ConnectionRequiredThe Mailchimp connection the step signs in with.
Audience idThe id List audiences gives you, and the id= in the Mailchimp audience URL.
E-mail addresstext
Status for a new contactOnly used when the contact is new. An existing contact keeps the status it has unless you set Status below.
StatusMailchimp will not re-subscribe a contact who unsubscribed themselves; they have to opt in again.
E-mail format"" or "html" or "text"
Merge fieldsKeyed by the merge TAG — FNAME, not First name. The List merge fields node gives you the tags.
Interest groupsKeyed by the interest id, not its name — the List interests node gives you the ids. An interest you leave out is left alone.
Languagetext
VIP"" or "on" or "off"
Latitudetext
Longitudetext
Marketing permissionsOne object per permission, as Mailchimp's GDPR fields are keyed. 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
statusIfNew"subscribed" or "unsubscribed" or "pending" or "transactional" or "cleaned", by default "subscribed"
status"" or "subscribed" or "unsubscribed" or "pending" or "transactional" or "cleaned"
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": "",
    "statusIfNew": "subscribed",
    "timestampOpt": "",
    "timestampSignup": "",
    "vip": ""
  },
  "label": "Add or update contact",
  "type": "mailchimp.upsertMember",
  "version": 1
}