The Early Return Data Operation verifies the validity of an expression and sets the Return Value if the validation is not passed. When the validation fails, all subsequent steps are skipped (exit the current flow) and the Return Value is return instead, in a Try/Catch fashion.
This Data Operation can be used as a step in Data Flows and API Endpoints alike.
- Set a Data Flow return when validation of input data fails
- Set API call response when payload validation fails
Data Operation Properties
This conditional expression allows the app builder to set conditions to evaluate whether the input is considered valid or not.
Return Value if Validation Fails
An expression (Text, number, JSON object, etc.) containing the value to return if the Validity Check expression returns
When using the Early Return data operation in App APIs, the return value if the validation fails is stored in a variable called
The result is a Boolean. If the returned value is
TRUE, all the subsequent steps are run, otherwise they are skipped and the Data Operation's Return Value is returned instead.