Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Mailchimp connection the step signs in with. |
| Address that is a member | Only the audiences this address is a contact of. |
| Created since | text |
| Created before | text |
| Sent to since | Only audiences a campaign went out to after this moment. |
| Has a webshop | "" or "true" or "false" |
| Sort direction | Sorts on the date the audience was created. |
| Fields to fetch | Mailchimp returns everything unless you name the fields you want. On a page of 1,000 this is the difference between fitting this run's size limit and not. |
| Audiences per call | 1 to 1,000. |
| Skip this many | Mailchimp pages by position, not by cursor. |
| Fetch every page | Walks Mailchimp's pages, and refuses past 5,000 rows rather than answering a short list. Mailchimp pages by position, so a collection that changes while the walk runs can repeat or skip a row. |
| 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`) |
email | text |
sinceDateCreated | text |
beforeDateCreated | text |
sinceCampaignLastSent | text |
hasEcommerceStore | "" or "true" or "false" |
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 |
|---|---|
audiences | array |
audienceCountAudiences in this answer | number |
hasMoreMore audiences are waiting behind this page | boolean |
totalItemsAudiences in total | number |
nextCursorCursor for the next page | string |
Sample output, and the expression for each field
- audienceCount0
- audiences[]
- hasMorefalse
- 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": "",
"connection": "<connection id>",
"cursor": "",
"email": "",
"fields": "",
"hasEcommerceStore": "",
"limit": 100,
"offset": 0,
"returnAll": false,
"sinceCampaignLastSent": "",
"sinceDateCreated": "",
"sortDir": ""
},
"label": "List audiences",
"type": "mailchimp.listAudiences",
"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. |
| Address that is a member | Only the audiences this address is a contact of. |
| Created since | text |
| Created before | text |
| Sent to since | Only audiences a campaign went out to after this moment. |
| Has a webshop | "" or "true" or "false" |
| Sort direction | Sorts on the date the audience was created. |
| Fields to fetch | Mailchimp returns everything unless you name the fields you want. On a page of 1,000 this is the difference between fitting this run's size limit and not. |
| Audiences per call | 1 to 1,000. |
| Skip this many | Mailchimp pages by position, not by cursor. |
| Fetch every page | Walks Mailchimp's pages, and refuses past 5,000 rows rather than answering a short list. Mailchimp pages by position, so a collection that changes while the walk runs can repeat or skip a row. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `mailchimp`) |
email | text |
sinceDateCreated | text |
beforeDateCreated | text |
sinceCampaignLastSent | text |
hasEcommerceStore | "" or "true" or "false" |
sortDir | "" or "ASC" or "DESC" |
fields | text |
limit | number, by default 100 |
offset | number, by default 0 |
returnAll | true/false, by default false |