Create campaign
BetaChanges data
Creates a campaign for an audience, ready to be filled and sent.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Mailchimp connection the step signs in with. |
| Type | "regular" or "plaintext" or "rss" or "variate" or "absplit" |
| Audience id | Picked from the list Mailchimp offers. |
| Saved segment id | Send to one segment instead of the whole audience. |
| Subject line | text |
| Preview text | text |
| Internal name | What you will recognise the campaign by inside Mailchimp. |
| From name | text |
| Reply-to address | Mailchimp lets you create a campaign without it but refuses to send one. |
| To name | text |
| Template id | Picked from the list Mailchimp offers. |
| Folder id | text |
| Content type | "" or "template" or "multichannel" |
| Track opens | "" or "on" or "off" |
| Track clicks in HTML | "" or "on" or "off" |
| Track clicks in plain text | "" or "on" or "off" |
| Google Analytics tag | text |
| RSS feed address | text |
| RSS frequency | "" or "daily" or "weekly" or "monthly" |
| RSS schedule | Which hour and which days Mailchimp checks the feed. |
| Multivariate settings | Which combinations Mailchimp tests and how it picks the winner. |
| Segment conditions | Mailchimp's own condition grammar, when a saved segment id is not enough. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `mailchimp`) |
type | "regular" or "plaintext" or "rss" or "variate" or "absplit", by default "regular" |
audienceId | texta value from the vendor's own list |
savedSegmentId | text |
subjectLine | text |
previewText | text |
title | text |
fromName | text |
replyTo | text |
toName | text |
templateId | texta value from the vendor's own list |
folderId | text |
contentType | "" or "template" or "multichannel" |
trackOpens | "" or "on" or "off" |
trackHtmlClicks | "" or "on" or "off" |
trackTextClicks | "" or "on" or "off" |
googleAnalytics | text |
rssFeedUrl | textused when `type` is "rss" |
rssFrequency | "" or "daily" or "weekly" or "monthly"used when `type` is "rss" |
rssScheduleJson | object (any keys), by default {}used when `type` is "rss" |
variateSettingsJson | object (any keys), by default {}used when `type` is "variate" |
segmentOptionsJson | object (any keys), by default {} |
Output
| Field | Type |
|---|---|
campaign | object |
campaignId | string |
status | string |
Sample output, and the expression for each field
- campaign
- id"c1"
- status"save"
- campaignId"c1"
- status"save"
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>",
"contentType": "",
"folderId": "",
"fromName": "",
"googleAnalytics": "",
"previewText": "",
"replyTo": "",
"rssFeedUrl": "",
"rssFrequency": "",
"rssScheduleJson": {},
"savedSegmentId": "",
"segmentOptionsJson": {},
"subjectLine": "",
"templateId": "",
"title": "",
"toName": "",
"trackHtmlClicks": "",
"trackOpens": "",
"trackTextClicks": "",
"type": "regular",
"variateSettingsJson": {}
},
"label": "Create campaign",
"type": "mailchimp.createCampaign",
"version": 1
}