Workflow Loop Issue

Hi Team,

I am working on a workflow where loop input is like:
{
“context”: [
{
“_originalType”: “identity”,
“_type”: “access”,
“_version”: “v2”,
“attribute”: “MENUOPTION”,
“displayName”: “ARF:01”,
“id”: “ddd925d450d934aaa06943c709d5556a”,
“name”: “ARF:01”,
“privileged”: false,
“source”: {
“id”: “681f32a9caeb4bd88030626817ef2b58”,
“name”: “MBA - Application”
},
“standalone”: false,
“type”: “ENTITLEMENT”,
“value”: “ARF:01”
},
{
“_originalType”: “identity”,
“_type”: “access”,
“_version”: “v2”,
“attribute”: “MENUOPTION”,
“displayName”: “ARF:02”,
“id”: “0fc61e5cf86b36898c6bc5dda2f29e59”,
“name”: “ARF:02”,
“privileged”: false,
“source”: {
“id”: “681f32a9caeb4bd88030626817ef2b58”,
“name”: “MBA - Application”
},
“standalone”: false,
“type”: “ENTITLEMENT”,
“value”: “ARF:02”
},
{
“_originalType”: “identity”,
“_type”: “access”,
“_version”: “v2”,
“attribute”: “MENUOPTION”,
“displayName”: “ARF:26”,
“id”: “475ace23db0931ec83680965821709ed”,
“name”: “ARF:26”,
“privileged”: false,
“source”: {
“id”: “681f32a9caeb4bd88030626817ef2b58”,
“name”: “MBA - Application”
},
“standalone”: false,
“type”: “ENTITLEMENT”,
“value”: “ARF:26”
},

inside the loop i am trying to store the if value using.
{
“name”: “entID”,
“description”: “”,
“transforms”: ,
“variableA.$”: “$.loop.context.id”
}

but on testing the workflow in output it returns back the variable itself instead of actual value
How can i get the id in each iterations

Loop Input should be a list. Did you pass the context as loop input. You can then access the id within loop using the $.loop.loopInput.id

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