Add error condition

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:4分
  • Enable an action to return custom status information when specific conditions are met. Specify whether a flow considers your custom action status as an error or a successful run.

    始める前に

    このタスクについて

    An action always returns an Action Status object. When an action runs, it evaluates the available error conditions from top to bottom looking for a possible match. An action returns the Action Status specified by the first matching error condition. If there is no matching error condition, the Action status is set to the Step Status of the last step run.

    手順

    1. Navigate to All > Process Automation > Flow Designer.
    2. Select the Actions tab and select the custom action you want to edit.
    3. From the Action Outline, select Error Evaluation.
    4. Select Add error condition for each error condition you want to define.
      Workflow Studio adds an If block for configuration.
    5. Configure each error condition.
      Field Description
      If Description of your error condition. You can use this label to identify the error condition when the condition builder is not visible. Each error condition is equivalent to an else if flow logic block. Only one error condition can be true at a time.
      Condition N Condition builder to specify the matching criteria for the error condition. You can add conditions or condition sets to define the matching criteria.
      For each condition, select an action data pill to evaluate. For each data pill to evaluate, select an operator and matching value.
      注:
      Workflow Studio only displays the operators and values available for the type of data pill you selected.
      Don't treat as error Option to report the Action Status as an error or a success when returned to a flow.
      Action Status Code Integer value you want the action to return as part of the Action Status object. You can use this integer value as part of a Flow error handler.
      Action Status Message String value you want the action to return as part of the Action Status object. You can use this string value as part of a Flow error handler.
    6. Order error conditions from top to bottom in the order you want the action to evaluate them.
    7. Select Save.

    タスクの結果

    Your custom action evaluates each error condition for matching conditions. The action returns the Action Status Code and Action Status Message for the first matching error condition. If there is no matching error condition, the Action status is set to the Step Status of the last step run.