# Loop operator in Workflow

**URL:** <https://developer.sailpoint.com/discuss/t/loop-operator-in-workflow/29594>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, sailpoint-identity-security\
**Created:** [February 8, 2024, 6:15pm UTC](https://developer.sailpoint.com/discuss/t/loop-operator-in-workflow/29594 "2024-02-08T18:15:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandramohans27](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@chandramohans27](https://developer.sailpoint.com/discuss/u/chandramohans27)\
**Post date:** [February 8, 2024, 6:15pm UTC](https://developer.sailpoint.com/discuss/t/loop-operator-in-workflow/29594/1 "2024-02-08T18:15:49Z")

</div>

Hi,

I have an HTTP call in our Workflow where I look for status code 200, if status code is not 200, I plan to do a retry. I see loop operator, I can iterate for 3 times, but want break when i see status code 200. could anyone suggest ideas.

---

<div class="post-metadata">

**Author:** ![jrote01](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@jrote01](https://developer.sailpoint.com/discuss/u/jrote01)\
**Post date:** [February 8, 2024, 6:51pm UTC](https://developer.sailpoint.com/discuss/t/loop-operator-in-workflow/29594/2 "2024-02-08T18:51:20Z")

</div>

Colin had a really good blog post on this type of recursive task. Here is a link to it:

> [@Recursive Workflows in IdentityNow](https://developer.sailpoint.com/discuss/t/recursive-workflows-in-identitynow/16235):
>
> IdentityNow Workflows provides a [loop operator](https://documentation.sailpoint.com/saas/help/workflows/workflow-operators.html#loop) that allows a workflow to process many items in a list of data in a quick and efficient manner. While the loop operator is a built-in component of Workflows, there is another way to achieve looping functionality using features that are currently supported in the product. In this blog, I will demonstrate how to implement recursion in Workflows to achieve looping behavior without the need for the loop operator. What is recursion? …

---

<div class="post-metadata">

**Author:** ![RTASB](https://avatars.discourse-cdn.com/v4/letter/r/aca169/32.png) [@RTASB](https://developer.sailpoint.com/discuss/u/RTASB)\
**Post date:** [February 9, 2024, 5:48am UTC](https://developer.sailpoint.com/discuss/t/loop-operator-in-workflow/29594/3 "2024-02-09T05:48:58Z")

</div>

The workflow HTTP Request action currently does not support non-200 responses and instead breaks the workflow, see [HTTP Response Fails Workflow Execution - IdentityNow (IDN) / IDN Discussion and Questions - SailPoint Developer Community Forum](https://developer.sailpoint.com/discuss/t/http-response-fails-workflow-execution/6575)

There’s an idea open for this to be handled gracefully here: [https://ideas.sailpoint.com/ideas/GOV-I-2204](https://ideas.sailpoint.com/ideas/GOV-I-2204) which you can vote on to have it prioritised.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [April 9, 2024, 5:49am UTC](https://developer.sailpoint.com/discuss/t/loop-operator-in-workflow/29594/4 "2024-04-09T05:49:59Z")

</div>

Closed on April 9, 2024, 5:49am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
