Workflow output parameters
  • 07 Feb 2023
  • 1 Minute to read
  • Dark
    Light

Workflow output parameters

  • Dark
    Light

Article Summary

Improve collaboration and streamline workflow reusability by creating output schemas for your workflows. The output schema consists of parameters that clearly define the workflow output data structure once the workflow is executed. To create an output schema add parameters directly to the workflow Exit operator. You also have the option to convert the Exit operator to JSON mode to create a raw JSON output.

Output schema

Create an output schema

The workflow has a single output schema that is enforced on all Exit operators other than the ones that were converted to JSON mode.

  1. To add a parameter to the workflow output schema, add it to an Exit operator in the workflow (see the image above).
    Specify the following information for each parameter:
    • Type: the parameter data type. The default is Short text.
    • Name: the parameter name can be used to reference it in the parent workflow context.
    • Description: (optional) a short description of the parameter.
  2. Update the parameter value in any other Exit operators in the workflow. You can use the output Event Preview tab for your convenience. These are the default values according to the parameter type:
    • Short/Long text: empty string
    • JSON: empty
    • Number: 0
    • Boolean: false
    • File: empty

Use the output schema of a nested workflow

The output schema of a nested workflow is available for reference without having to execute it. Design the parent workflow based on what you know you can expect from the output of the nested workflow.

Nested workflow output parameters

JSON mode

Convert a specific Exit operator to JSON mode to have the workflow output schema not apply to it. When using JSON mode you can provide raw JSON as the output.

Important
When using JSON mode, the parent workflow may need to account for different output data structures since there's no output schema that's applied to all Exit operators of the nested workflow.

  1. Select Convert to JSON in the Exit operator properties.
    Convert to JSON mode
  2. Select Convert.
  3. The Exit operator icon is changed to indicate JSON mode.
    JSON mode

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.