<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
Workflows Collection: Build Flows with Recursion
Workflows
Okta Classic Engine
Okta Identity Engine
Overview

This guide provides instructions for how to set up recursion in Okta Workflows.

Applies To
  • Okta Workflows
Solution

Recursion is when a function calls itself until it solves a problem. In Okta Workflows, recursion is when a flow calls itself.

 

A common use case is when a flow iterates over an API response with multiple records and combines the previous records with the next set until it has processed all records.

 

NOTE: Before you consider recursion, consider using the streaming data option or the Get(Streaming) option in the Okta-Custom API Action card.

 

Recursion in Workflows

Okta compiled the following resources to help you learn how to set up recursion.

 

 

Factorial calculation example

The following two screenshots show the factorial calculation.

 

Start flow  
Start flow.

The helper flow calls itself to calculate the factorial
The helper flow calls itself to calculate the factorial.

 

Calculating the factorial of 5:

 

Calculating the factorial of 5  
Calculating the factorial of 5.

 

 

Loading
Workflows Collection: Build Flows with Recursion