# HTTP Request inside loop

**URL:** <https://developer.sailpoint.com/discuss/t/http-request-inside-loop/72875>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud, workflows\
**Created:** [July 16, 2024, 9:43am UTC](https://developer.sailpoint.com/discuss/t/http-request-inside-loop/72875 "2024-07-16T09:43:00Z")\
**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:** [July 16, 2024, 9:43am UTC](https://developer.sailpoint.com/discuss/t/http-request-inside-loop/72875/1 "2024-07-16T09:43:01Z")

</div>

Hi Experts,

In a workflow, I’m invoking 2 api calls inside the loop operator. If the http request fails, I see failure error in log.

Is there an option to see the failures occurred in the loop in the next step, i.e after the loop exit

---

<div class="post-metadata">

**Author:** ![shaileeM](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/shaileem/32/15314_2.png) [@shaileeM](https://developer.sailpoint.com/discuss/u/shaileeM)\
**Post date:** [July 16, 2024, 10:14am UTC](https://developer.sailpoint.com/discuss/t/http-request-inside-loop/72875/2 "2024-07-16T10:14:16Z")

</div>

Hi,

As per this [Workflow - Issue with “Define Variable” operator? - Identity Security Cloud (ISC) / ISC Discussion and Questions - SailPoint Developer Community](https://developer.sailpoint.com/discuss/t/workflow-issue-with-define-variable-operator/21628), and also we have experienced it that steps that come after loop cannot reference the steps inside the loop.

As shared in the above link, you can check Recursive workflow concept to achieve this - [Recursive Workflows in IdentityNow - Content / Community Blog - SailPoint Developer Community](https://developer.sailpoint.com/discuss/t/recursive-workflows-in-identitynow/16235)

Thanks

---

<div class="post-metadata">

**Author:** ![neeraj99](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/neeraj99/32/14001_2.png) [@neeraj99](https://developer.sailpoint.com/discuss/u/neeraj99)\
**Post date:** [July 16, 2024, 10:14am UTC](https://developer.sailpoint.com/discuss/t/http-request-inside-loop/72875/3 "2024-07-16T10:14:46Z")

</div>

Hi @chandramohans27 i don’t think you can get that output out of the loop. Reason being that loop runs independently, also there is no storage variable that can be used to store the responses and reference outside loop.  
Check this for more info:[Operators - SailPoint Identity Services](https://documentation.sailpoint.com/saas/help/workflows/workflow-operators.html#loop)

---

<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:** [September 14, 2024, 10:15am UTC](https://developer.sailpoint.com/discuss/t/http-request-inside-loop/72875/4 "2024-09-14T10:15:00Z")

</div>

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