FlowmageDocs

Get segment

BetaReads data

Reads one segment of an audience with its contact count.

Settings

SettingWhat it is
ConnectionRequiredThe Mailchimp connection the step signs in with.
Audience idPicked from the list Mailchimp offers.
Segment idThe id List segments gives you.
Fields to fetchMailchimp returns everything unless you name the fields you want.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `mailchimp`)
audienceIdtexta value from the vendor's own list
segmentIdtext
fieldstext

Output

FieldType
segmentobject
segmentNamestring
memberCountContacts in the segmentnumber
Sample output, and the expression for each field
  • memberCount3
  • segment
    • id7
    • name"Customers"
  • segmentName"Customers"

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": {
    "audienceId": "",
    "connection": "<connection id>",
    "fields": "",
    "segmentId": ""
  },
  "label": "Get segment",
  "type": "mailchimp.getSegment",
  "version": 1
}