Sign Up
Loading...

Command Output

Watch the walkthrough

Command Outputs

Use command outputs as values in later workflow steps.

Recorded with an earlier Twidget interface. Names, control locations and available options may differ; use the linked documentation for current guidance.

Watch tutorial (2:25)

Browse all video tutorials

Some commands in Twidget return outputs, which are essential for dynamic and conditional logic within your workflows. These outputs are displayed next to the command and are prefixed with an "as" to indicate the variable name.

Using Output Variables

Once a command returns an output, you can use these output variables throughout the code builder interface. To reference them:

  1. Open the Variable Builder: You can access the Variable Builder by selecting the Variable type within any module that supports variable inputs.

  2. Select or Search for Variables: The Variable Builder presents a dropdown list of all available variables, including both the output variables and any global variables you've defined. You can search through this dropdown by typing text to quickly find the variable you need.

Renaming and Viewing Output Variables

  • Edit Command Sidebar: You can rename the output variables to more meaningful names that better fit your context by navigating to the edit command sidebar.

  • Output Section: Some commands feature an Output section where you can:

    • Edit Output Name: Change the default output variable name to a customized name.

    • View Output Schema: See the structure and data types of the output to understand what kind of data the command returns.

Related Topics

Globals & secrets

Keep shared configuration and private values in one place. Open Global at the top of an endpoint, function or event, or open the manager from Settings. The Variables and Secrets tabs belong to the selected workspace. Use ordinary variables for reusable settings such as a default page size or service...

Working on smaller screens

Twidget adapts its navigation, lists and editing panels to phones, tablets and smaller laptop windows. You can use the same workspace and saved workflows across these views. Open your workspace tools. On a phone, use the menu button at the top to open workspace navigation. Choose a tool from Build, ...

Publishing Changes

With Twidget's publishing feature, you can seamlessly push your changes live, ensuring that your updates take effect on the specified endpoint, function, or event. This feature also allows for version control, enabling you to revert and manage different versions of your changes effectively. Steps to...

Dynamic variables in JSON and text

Build JSON bodies and messages using values from your workflow. The Insert variable picker lets you choose inputs, earlier command results, nested object fields and list items without typing their references. Choose a nested field or list item. 1. Open a command value or function output and choose J...

Safer Releases

Move a reviewed set of published workflows from a Dev workspace to a Prod workspace. Releases let you review the changes together, keep a release history and review a rollback if you need to restore the previous workflows. Prepare your workspaces. Use two existing workspaces in the same organization...