FlowmageDocs

Create segment

BetaChanges data

Creates a saved or static segment in an audience.

Settings

SettingWhat it is
ConnectionRequiredThe Mailchimp connection the step signs in with.
Audience idPicked from the list Mailchimp offers.
Segment nametext
Kind"static" or "saved"
AddressesComma separated. Left empty, Mailchimp creates an empty static segment you can fill later.
Match"any" or "all"
ConditionsMailchimp's own condition grammar — around forty condition types, each with its own operators. The vendor's segmentation-conditions page lists them.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `mailchimp`)
audienceIdtexta value from the vendor's own list
nametext
kind"static" or "saved", by default "static"
staticMemberstextused when `kind` is "static"
match"any" or "all", by default "any"used when `kind` is "saved"
conditionsJsonlist of any JSON, by default []used when `kind` is "saved"

Output

FieldType
segmentobject
segmentIdnumber
memberCountContacts in the segmentnumber
Sample output, and the expression for each field
  • memberCount0
  • segment
    • id7
    • name"Customers"
  • segmentId7

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": "",
    "conditionsJson": [],
    "connection": "<connection id>",
    "kind": "static",
    "match": "any",
    "name": "",
    "staticMembers": ""
  },
  "label": "Create segment",
  "type": "mailchimp.createSegment",
  "version": 1
}