How to Pass Multiple Variables into Loop Context in IdentityNow Workflow?

Hi Experts,

I am building a Workflow in ISC where I need to pass multiple variables into a loop’s Context to use during iteration.
for example I have two variables, identityName (stored in variable A, “John Doe”) and email (stored in variable B email, “john.doe@example.com”) that I want to access in each loop iteration alongside the Loop Input.

The Loop operator only allows one Context object, so I am struggling to both in the loop.

Hi @amishra25 ,

In context, try passing the entire output you received from the getidentity action/any previous steps. Then, inside the loop, try accessing the attributes you need from the context, such as email.

Just giving some inputs with which I have done →

Hi Gokul, appreciate your effort on it, actually I used an example about identity id and email id. in my case both variables value is coming from different API calls.

Yes, in the loop you can pass the identityId and in the context you can pass the email.

What I mean is: if you have two different API calls — the first one gives you the identityId. If you need to use any other attributes from the output of that first call, you can pass them inside a loop. Then, use the result of the second API call as the context. Inside the loop, you can access and use it in the way I showed in the image.

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