One Tool Example
Detour has a One Tool Example. Visit Sample Workflows to learn how to access this and many other examples directly in Alteryx Designer.
Use Detour to prompt a user to bypass a process in a workflow. The Detour tool is useful in constructing Analytic Apps or Macros. It is typical in an analytic app or macro to turn a whole section of the workflow on or off based on user input. Detours make it easy to effectively remove any number of tools with a single analytic app or macro action.
Configure the Tool
- When you add a Detour tool to a workflow, first determine the process to bypass, whether you would like to configure to the left or to the right, and check the box appropriately. Make sure your analytic app or macro sets the direction either way and you don't rely on the state in the workflow. Select Detour to the Right to make sure the bypass is through the right side of the Detour tool. By default, the bypass occurs from the left side of the tool.
- Connect the tool leading into the process you wish to bypass to the input connection of a Detour tool.
- Connect the outputs to both the continue process and bypass process. The unselected side does not get evaluated or run at all. That means in the GUI, the metainfo (fields, etc.) is not getting updated for downstream tools. It makes it very hard to configure the disabled side.
- Once the detour is rerouted, connect to a Detour End tool to unify the data processes into a single stream for further analysis or connect to an output tool.