<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
How to Use Outputs with the If/Else, If/ElseIf and If Error Cards in Okta Workflows
Workflows
Okta Classic Engine
Okta Identity Engine
Overview

To map data from an output on a card that resides inside of an If/Else, If/ElseIf, or If Error card to any card that resides outside of these cards, Outputs must be used. It is not possible to drag and drop an output from a card inside the If/Else, If/ElseIf, or If Error cards to an input on a card that sits outside of these cards. This article describes how to use Outputs to accomplish this.

Applies To
  • Okta Workflows
  • If/Else card
  • If/ElseIf card
  • If Error card
Solution

By default, outputs are not visible on the If/ElseIf and If Error cards. Click on View Outputs in the upper right-hand corner of the card to see the outputs. On the If/Else card must click the Create Outputs button to see the outputs. Each output value that needs to be passed from within an If/Else, If/ElseIf, or If Error card to another card downstream in the workflow must have a separate user-defined output that is set to the appropriate data type.  

 

In the following example, an Okta ID is passed into the helper flow, and the conditions in the If/ElseIf card are used to determine if the ID passed into the flow is a User, Group, Application, or Other type of object based on the ID prefix.  The ObjectType output, which was manually defined, will be populated with the appropriate value specified in the applicable condition that is executed when the flow runs. The ObjectType output can then be used as an input in cards downstream in the workflow, like the Compose card in this example:

Workflows

Each condition in the If/ElseIf card has a corresponding placeholder field under the ObjectType output to which a value can be mapped.  The top-level ObjectType variable will be populated with the applicable value based on the condition that was executed.  For example, the objectPrefix == "0oa" condition is the third condition in the card and an output value for this condition can be mapped to the third placeholder field under the ObjectType output:

Workflows

When this condition is executed, the ObjectType output will be populated with the value APP as specified in the Assign card:

OutputsHistory

 

NOTE: The outputs can be toggled between View Outputs and Hide Outputs on the If/ElseIf and If Error cards. When the Outputs are hidden and an output is mapped to a card downstream in the workflow, when hovering over the mapping in the downstream card, it will show an empty box where the mapping would normally display the outputs, if they were not hidden:

HiddenOutputs

Recommended content

Documentation
If/ElseIf
Support Videos
Okta Workflows
Documentation
If/Else
Loading
How to Use Outputs with the If/Else, If/ElseIf and If Error Cards in Okta Workflows