Skip to main content
All CollectionsTemplatesBasic
Return Specific Default or Overriding Workspace Variable - Workflow Template
Return Specific Default or Overriding Workspace Variable - Workflow Template

This workflow will return a variable from two workspace variables with priority if found in the Overriding Workspace Variable then Default.

Updated over 6 months ago

This Torq Workflow Template provides a solution for managing and retrieving workspace variables within your Torq environment. It is designed to fetch the value of a specified variable, prioritizing an "Overriding Workspace Variable" before falling back to a "Default Workspace Variable". If neither variable is found, the workflow outputs null. This is especially useful for environments where configuration management is essential, and where different priorities are given to default and overridden variable values.

Use Cases

Function

Workflow Breakdown

  1. Receive the variable name as input from the parent workflow

  2. If the variable is found in the Overriding_Workspace_Variable return the vaule

  3. If the variable is found in the Default_Workspace_Variable return the value.

  4. If no variable is found, return null.

Vendors

Workflow Output

The variable value from the workspace variable or if not found return null.

Did this answer your question?