FlowmageDocs

Update segment

BetaChanges data

Renames a segment or replaces the conditions it selects on.

Settings

SettingWhat it is
ConnectionRequiredThe Mailchimp connection the step signs in with.
Audience idPicked from the list Mailchimp offers.
Segment idtext
Segment nameMailchimp requires a name on every change, even an unchanged one.
AddressesStatic segments only. Comma separated, and it REPLACES the membership. Change static segment members adds and removes instead.
Match"" or "any" or "all"
ConditionsSaved segments only. Replaces every condition the segment has.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `mailchimp`)
audienceIdtexta value from the vendor's own list
segmentIdtext
nametext
staticMemberstext
match"" or "any" or "all"
conditionsJsonlist of any JSON, by default []

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": "",
    "conditionsJson": [],
    "connection": "<connection id>",
    "match": "",
    "name": "",
    "segmentId": "",
    "staticMembers": ""
  },
  "label": "Update segment",
  "type": "mailchimp.updateSegment",
  "version": 1
}