Set Up Recursion in Okta Workflows

In this guide:

  1. Okta Workflows guides
  2. Set up recursion
  3. Okta Workflows resources

Okta Workflows guides

Okta Workflows guides are questions and answers from the community office hours, the #okta-workflows channel on MacAdmins Slack, and other places. Read all the other guides.

How do you set up recursion in Okta Workflows?

This guide will show you how to set up recursion in Okta Workflows.

Set up recursion

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

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

Recursion in Workflows

We have collected the following resources to help you learn how to set up recursion.

Calculate the factorial

The following two screenshots show the factorial calculation.

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

Calculating the factorial of 5:

Calculating the factorial of 5.

Okta Workflows resources

🍫 Get help from Workflows specialists during weekly community office hours.

πŸ“Ί Learn from Workflows videos.

πŸ›Ÿ Ask questions and share your flows on the Okta Workflows community forum.

πŸ™‹πŸ»β€β™€οΈ Get help from the community: join the #okta-workflows channel on MacAdmins Slack.

Leave a comment