Hi ,
I am trying to Add Access inside a loop. Same steps I am following without loop it is working fine.
What I wanted to do is I am getting multiple access items , I am passing it inside a loop and till Get Access it is working fine, as soon as I am adding Manage Access and passing the access item it is getting failed.
Any suggestions would be helpful.
FYR this is the input getting passed into loop:
{
"context": null,
"context.$": "",
"input": "ACE Sales Group",
"start": "Define Variable",
"steps": {
"Define Variable": {
"attributes": {
"id": "sp:define-variable",
"variables": [
{
"description": "psg2",
"name": "psg2",
"transforms": [],
"variableA.$": "$.loop.loopInput"
}
]
},
"displayName": "",
"nextStep": "Get Access",
"type": "Mutation"
},
"End Step - Success 1": {
"displayName": "",
"type": "success"
},
"Get Access": {
"actionId": "sp:access:get",
"attributes": {
"accessprofiles": false,
"entitlements": true,
"getAccessBy": "searchQuery",
"query": "name.exact:\"{{$.defineVariable.psg2}}\"",
"roles": false
},
"displayName": "",
"nextStep": "Manage Access",
"type": "action",
"versionNumber": 1
},
"Manage Access": {
"actionId": "sp:access:manage",
"attributes": {
"addIdentities.$": "$.getIdentity.id",
"comments": "Salesforce Access",
"requestType": "GRANT_ACCESS",
"requestedItems.$": "$.getAccess.accessItems"
},
"displayName": "",
"nextStep": "End Step - Success 1",
"type": "action",
"versionNumber": 1
}
},
"suppliedInlineExpression": {
"steps": "{\"Define Variable\":{\"attributes\":{\"id\":\"sp:define-variable\",\"variables\":[{\"description\":\"psg2\",\"name\":\"psg2\",\"transforms\":[],\"variableA.$\":\"$.loop.loopInput\"}]},\"displayName\":\"\",\"nextStep\":\"Get Access\",\"type\":\"Mutation\"},\"End Step - Success 1\":{\"displayName\":\"\",\"type\":\"success\"},\"Get Access\":{\"actionId\":\"sp:access:get\",\"attributes\":{\"accessprofiles\":false,\"entitlements\":true,\"getAccessBy\":\"searchQuery\",\"query\":\"name.exact:\\\"{{$.defineVariable.psg2}}\\\"\",\"roles\":false},\"displayName\":\"\",\"nextStep\":\"Manage Access\",\"type\":\"action\",\"versionNumber\":1},\"Manage Access\":{\"actionId\":\"sp:access:manage\",\"attributes\":{\"addIdentities.$\":\"$.getIdentity.id\",\"comments\":\"Salesforce Access\",\"requestType\":\"GRANT_ACCESS\",\"requestedItems.$\":\"$.getAccess.accessItems\"},\"displayName\":\"\",\"nextStep\":\"End Step - Success 1\",\"type\":\"action\",\"versionNumber\":1}}"
}
}
Thanks