I have created a test workflow to print loop input. So, that i can use later.
Can anyone suggest me what is wrong with loop input?
Please find workflow json attached too.
{
"name": "Iterate Identities and Send Email",
"description": "Workflow to iterate through identities using a loop and send an email for each identity",
"modified": "2026-07-08T12:06:14.354944323Z",
"modifiedBy": {
"type": "IDENTITY",
"id": "a244f1b207a44c858c838ccbf56a2332",
"name": "6099714"
},
"definition": {
"start": "Get List of Identities",
"steps": {
"End Step - Success": {
"actionId": "sp:operator-success",
"displayName": "End Step - Success",
"type": "success"
},
"Get List of Identities": {
"actionId": "sp:get-identities",
"attributes": {
"inputQuery": "6099123456",
"searchBy": "searchQuery"
},
"displayName": "Get List of Identities",
"nextStep": "Loop Through Identities",
"type": "action",
"versionNumber": 2
},
"Loop Through Identities": {
"actionId": "sp:loop:iterator",
"attributes": {
"input.$": "$.getListOfIdentities.identities",
"loopInput.$": "$.getListOfIdentities",
"start": "Send Email to Identity",
"steps": {
"End Loop Step": {
"actionId": "sp:operator-success",
"displayName": "End Loop Step",
"type": "success"
},
"Send Email to Identity": {
"actionId": "sp:send-email",
"attributes": {
"body": "<p>Hello ${{loop.loopInput.displayName}}, this is an automated email notification.</p>\n<p>{{$.loopThroughIdentities.loopInput}}</p>\n<p>{{loop.loopInput}}</p>",
"context": {
"displayName.$": "$.loop.loopInput.displayName"
},
"from": "no-reply@sailpoint.com",
"recipientEmailList": [
"amrit.raj@lseg.com"
],
"replyTo": null,
"subject": "Notification for Identity"
},
"displayName": "Send Email to Identity",
"nextStep": "End Loop Step",
"type": "action",
"versionNumber": 2
}
}
},
"displayName": "Loop Through Identities",
"nextStep": "End Step - Success",
"type": "action",
"versionNumber": 1
}
}
},
"creator": {
"type": "IDENTITY",
"id": "a244f1b207a44c858c838ccbf56a2332",
"name": "6099123456"
},
"trigger": {
"type": "EXTERNAL",
"attributes": {
"id": "idn:external-http",
"integrationId": null
}
}
}
This is what i have received as email.
Hello ${{loop.loopInput.displayName}}, this is an automated email notification.
{{$.loopThroughIdentities.loopInput}}
{{loop.loopInput}}



