Set campaign content
BetaChanges data
Replaces what a campaign sends with HTML, a web page, a template or an archive.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Mailchimp connection the step signs in with. |
| Campaign id | text |
| HTML | One source only: HTML, a web address, a template or an archive. |
| Plain text | Sent beside any of the sources. Left empty, Mailchimp derives it. |
| Import from a web address | Mailchimp fetches the page and uses it as the content. |
| Template id | Picked from the list Mailchimp offers. |
| Template sections | Keyed by the section name in the template's own mc:edit attributes. |
| Archive | The archive's bytes as base64. Mailchimp takes no multipart upload here. |
| Archive type | "" or "zip" or "tar.gz" or "tar.bz2" or "tar" or "tgz" or "tbz" |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `mailchimp`) |
campaignId | text |
html | text |
plainText | text |
url | text |
templateId | texta value from the vendor's own list |
templateSections | object of text, by default {} |
archiveBase64 | text |
archiveType | "" or "zip" or "tar.gz" or "tar.bz2" or "tar" or "tgz" or "tbz" |
Output
| Field | Type |
|---|---|
content | object |
plainText | string |
campaignId | string |
Sample output, and the expression for each field
- campaignId"c1"
- content
- plain_text"Hello"
- plainText"Hello"
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": {
"archiveBase64": "",
"archiveType": "",
"campaignId": "",
"connection": "<connection id>",
"html": "",
"plainText": "",
"templateId": "",
"templateSections": {},
"url": ""
},
"label": "Set campaign content",
"type": "mailchimp.setCampaignContent",
"version": 1
}