List templates
Lists the e-mail templates the account can build a campaign from.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Mailchimp connection the step signs in with. |
| Created by | text |
| Type | Mailchimp's own template types, such as user, base or gallery. |
| Category | text |
| Folder id | text |
| Content type | "" or "html" or "template" or "multichannel" |
| Created since | text |
| Created before | text |
| Sort on | "" or "date_created" or "date_edited" or "name" |
| Sort direction | "" or "ASC" or "DESC" |
| Fields to fetch | Mailchimp returns everything unless you name the fields you want. |
| Templates per call | 1 to 1,000. |
| Skip this many | number |
| Fetch every page | Walks Mailchimp's pages, and refuses past 5,000 rows rather than answering a short list. |
| Cursor | Paste a previous run's Next cursor to read the page after it. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `mailchimp`) |
createdBy | text |
type | text |
category | text |
folderId | text |
contentType | "" or "html" or "template" or "multichannel" |
sinceDateCreated | text |
beforeDateCreated | text |
sortField | "" or "date_created" or "date_edited" or "name" |
sortDir | "" or "ASC" or "DESC" |
fields | text |
limit | number, by default 100 |
offset | number, by default 0 |
returnAll | true/false, by default false |
cursor | text |
Output
| Field | Type |
|---|---|
templates | array |
templateCountTemplates in this answer | number |
hasMoreMore templates are waiting behind this page | boolean |
totalItemsTemplates in total | number |
nextCursorCursor for the next page | string |
Sample output, and the expression for each field
- hasMorefalse
- templateCount0
- templates[]
- totalItems0
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": {
"beforeDateCreated": "",
"category": "",
"connection": "<connection id>",
"contentType": "",
"createdBy": "",
"cursor": "",
"fields": "",
"folderId": "",
"limit": 100,
"offset": 0,
"returnAll": false,
"sinceDateCreated": "",
"sortDir": "",
"sortField": "",
"type": ""
},
"label": "List templates",
"type": "mailchimp.listTemplates",
"version": 2
}Older versions
A flow that already has this version keeps running it. A new step always gets the newest.
Version 1
| Setting | What it is |
|---|---|
| ConnectionRequired | The Mailchimp connection the step signs in with. |
| Created by | text |
| Type | Mailchimp's own template types, such as user, base or gallery. |
| Category | text |
| Folder id | text |
| Content type | "" or "html" or "template" or "multichannel" |
| Created since | text |
| Created before | text |
| Sort on | "" or "date_created" or "date_edited" or "name" |
| Sort direction | "" or "ASC" or "DESC" |
| Fields to fetch | Mailchimp returns everything unless you name the fields you want. |
| Templates per call | 1 to 1,000. |
| Skip this many | number |
| Fetch every page | Walks Mailchimp's pages, and refuses past 5,000 rows rather than answering a short list. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `mailchimp`) |
createdBy | text |
type | text |
category | text |
folderId | text |
contentType | "" or "html" or "template" or "multichannel" |
sinceDateCreated | text |
beforeDateCreated | text |
sortField | "" or "date_created" or "date_edited" or "name" |
sortDir | "" or "ASC" or "DESC" |
fields | text |
limit | number, by default 100 |
offset | number, by default 0 |
returnAll | true/false, by default false |