I’m trying to build this below workflow which will send the email to the Manager and user based on the search query results. I’m facing the below issue as the the “Get List of Identities” is returning me the entire Identity object(including Access). Within the loop I’m trying to get the Identity with the below variable
$.loop.context.getListOfIdentities.identities[0].id → this is returning me with same single identity everytime.
Is there other option to get identity everytime the loop runs and pulls different identity?
@sharvari I did try $.loop.loopinput.context.id but did not work. @colin_mckibben, is this by design if we do Get List of Identities it gives the entire identity object including (Accounts, entitlements…)
Your loop is already setup to operate on each identity that is returned by “Get List of Identities”. There should be no need to have “Get Identity” inside your loop, as it will effectively just get the same information that is already provided. To access the identity information within the loop, you just use this JSONpath: