FlowmageDocs

Set campaign content

BetaChanges data

Replaces what a campaign sends with HTML, a web page, a template or an archive.

Settings

SettingWhat it is
ConnectionRequiredThe Mailchimp connection the step signs in with.
Campaign idtext
HTMLOne source only: HTML, a web address, a template or an archive.
Plain textSent beside any of the sources. Left empty, Mailchimp derives it.
Import from a web addressMailchimp fetches the page and uses it as the content.
Template idPicked from the list Mailchimp offers.
Template sectionsKeyed by the section name in the template's own mc:edit attributes.
ArchiveThe 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
KeyValue
connectiontexta connection id from `requires.connections` (provider `mailchimp`)
campaignIdtext
htmltext
plainTexttext
urltext
templateIdtexta value from the vendor's own list
templateSectionsobject of text, by default {}
archiveBase64text
archiveType"" or "zip" or "tar.gz" or "tar.bz2" or "tar" or "tgz" or "tbz"

Output

FieldType
contentobject
plainTextstring
campaignIdstring
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
}