FlowmageDocs

Get campaign content

BetaReads data

Reads the HTML and plain text a campaign will send.

Settings

SettingWhat it is
ConnectionRequiredThe Mailchimp connection the step signs in with.
Campaign idtext
Fields to fetchMailchimp returns everything unless you name the fields you want. A full HTML body is large; asking for plain_text alone keeps the run small.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `mailchimp`)
campaignIdtext
fieldstext

Output

FieldType
contentobject
htmlstring
plainTextstring
Sample output, and the expression for each field
  • content
    • html"<p>Hello</p>"
    • plain_text"Hello"
  • html"<p>Hello</p>"
  • 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": {
    "campaignId": "",
    "connection": "<connection id>",
    "fields": ""
  },
  "label": "Get campaign content",
  "type": "mailchimp.getCampaignContent",
  "version": 1
}