Magidoc

ConditionInput
Input Object

Represents a single condition that evaluates a field against a value using a comparison operator. Used as building blocks within condition groups to create complex filtering logic.

Fields

#

dataFieldId

The unique identifier of a custom data field to evaluate. Use this for user-defined fields. Either FieldName or DataFieldId should be provided.

fieldName

The name of the field to evaluate. This typically corresponds to a contact property or custom field. Either FieldName or DataFieldId should be provided.

operator

Non-null

The comparison operator that determines how the field is evaluated against the value (e.g., equals, contains, greater than).

value

The value to compare against the field. The expected format depends on the field type and operator used. For date fields use ISO 8601 format, for numeric fields use string representation of numbers.