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)
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)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.

Once a command returns an output, you can use these output variables throughout the code builder interface. To reference them:
Open the Variable Builder: You can access the Variable Builder by selecting the Variable type within any module that supports variable inputs.
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.
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.
Workflow templates
Keep reusable workflows in a private library within your workspace. Save a useful endpoint, function, middleware or event, then install independent draft copies when you need the same starting point again. Related workflows are included automatically where supported. Open Workflow templates from the...
Background jobs
Let a server function continue in the background while the original workflow returns a job ID. This is useful for work such as preparing a report or processing a batch of records. What counts as a job?. A function or endpoint is not automatically a background job. A job is created only when a workfl...
Commands in Twidget
Commands are the building blocks of Twidget's no-code platform. They function like code statements and can perform various operations such as creating and updating variables, loops, conditionals, retrieving and manipulating data in the datastore, and much more. Creating a Command. 1. Navigate to the...
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...
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...