@servicenow/sdk - v4.7.0
    Preparing search index...

    Represents a single error evaluation condition for an action.

    Each condition defines a rule that evaluates at runtime to determine the action's status. Conditions are evaluated in order — the first matching condition's status is applied.

    interface ErrorEvaluationCondition {
        condition: string;
        dontTreatAsError?: boolean;
        label: string;
        status: { code: string | number; message: string };
    }
    Index

    Properties

    condition: string

    Query-style condition string. May include datapill references via template literals with wfa.dataPill().

    condition: `${wfa.dataPill(step1.__step_status__.code, 'integer')}=500`
    
    dontTreatAsError?: boolean

    When true, the action does not treat this condition as an error. Defaults to false.

    label: string

    Display label for the condition (visible in Flow Designer).

    status: { code: string | number; message: string }

    The status to set when this condition matches.

    Type Declaration

    • code: string | number

      Status code (integer). Can be a number or a template expression with datapills.

    • message: string

      Status message. Can be a string or a template expression with datapills.