Create merge field
BetaChanges data
Adds a merge field to an audience so contact writes can fill it.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Mailchimp connection the step signs in with. |
| Audience id | Picked from the list Mailchimp offers. |
| Name | What a person reading the sign-up form sees. |
| Type | "text" or "number" or "address" or "phone" or "date" or "url" or "imageurl" or "radio" or "dropdown" or "birthday" or "zip" |
| Merge tag | The short name a contact write is keyed by, such as FNAME. Left empty, Mailchimp derives one. |
| Required | true/false |
| Default value | text |
| Show on the sign-up form | true/false |
| Position on the form | A whole number. Left empty, Mailchimp puts it last. |
| Help text | text |
| Type options | What the type needs: choices for a dropdown or radio, a date format, a phone format, a country, a size. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `mailchimp`) |
audienceId | texta value from the vendor's own list |
name | text |
type | "text" or "number" or "address" or "phone" or "date" or "url" or "imageurl" or "radio" or "dropdown" or "birthday" or "zip", by default "text" |
tag | text |
required | true/false, by default false |
defaultValue | text |
publicField | true/false, by default true |
displayOrder | text |
helpText | text |
optionsJson | object (any keys), by default {} |
Output
| Field | Type |
|---|---|
mergeField | object |
mergeFieldId | number |
tagMerge tag | string |
Sample output, and the expression for each field
- mergeField
- merge_id3
- tag"FNAME"
- mergeFieldId3
- tag"FNAME"
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>",
"defaultValue": "",
"displayOrder": "",
"helpText": "",
"name": "",
"optionsJson": {},
"publicField": true,
"required": false,
"tag": "",
"type": "text"
},
"label": "Create merge field",
"type": "mailchimp.createMergeField",
"version": 1
}