<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
0D5KZ00001Y8sNA0AZOkta Identity EngineWorkflowsAnswered2026-04-03T09:00:22.000Z2025-10-29T11:57:51.000Z2025-11-05T19:12:07.000Z

3dl5q (3dl5q) asked a question.

Okta Workflows: “Poll until condition is true” before continuing?

Hi there ,

 

Is there a recommended pattern in Okta Workflows to “wait and retry until a condition is true,” then continue the automation?

 

Goal

Right after the trigger fires, I need to:

  1. Call an external API.
  2. Compare the API’s timestamp to the trigger timestamp.
  3. If api_timestamp >= trigger_timestamp, continue the flow.
  4. If not, retry the API call every 10 minutes until the condition is true.

 


  • 3dl5q (3dl5q)

    Got an answer from the Okta Workflows channel in case anyone else is asking this same question.

    Image is not available

    Expand Post
    Selected as Best
  • 3dl5q (3dl5q)

    Got an answer from the Okta Workflows channel in case anyone else is asking this same question.

    Image is not available

    Expand Post
    Selected as Best
    • TimL.58332 (Workflows)

      @3dl5q (3dl5q)​  -- This is the correct approach for this type of scenario.

       

      Perform action > Evaluation of results > If/Else based on logic of results

       

      If condition is met perform desired steps and "end"

       

      Else repeat by calling flow again.

       

      In these scenarios I generally put a "Counter" value and increment it for each "Call Flow" on the helper and perform an additional check to quit after the counter hits some value. You can also use the counter + a lookup table to use an every increasing wait similar to how mail (smtp) server retries work. So for example first retry could be 5 minutes, second 15, third 1 hour, 4th 4 hours, 5th none->hard fail.

      Expand Post
  • BrandonB.06003 (Customer)

    Looks like you already got your answwer but ill second it. For looping creating a recursive workflow that calls itself but at some points assigns a varible like "end" so the flow can stop calling itself

Loading
Okta Workflows: “Poll until condition is true” before continuing?