Hi,
I have been trying to use the below JSON as payload to create a certification campaign using workflow. I am getting the error "Unable to parse input as JSON. It is because of the json path returning an array within accessConstraints. Please help me with this issue. I have even tried {{$.hTTPRequest1.body[*].id.JSON()}}
{
"name": "CI Change Campaign",
"description": "SNOW specific access item needs to be reviewed by the manager",
"deadline": null,
"type": "SEARCH",
"emailNotificationEnabled": true,
"autoRevokeAllowed": false,
"recommendationsEnabled": false,
"correlatedStatus": "CORRELATED",
"filter": null,
"sunsetCommentsRequired": false,
"sourceOwnerCampaignInfo": null,
"searchCampaignInfo": {
"type": "IDENTITY",
"description": "Certification campaign SNOW (AD Based) access items",
"reviewer": {
"type": "IDENTITY",
"id": "{{$.getIdentity.managerRef.id}}"
},
"identityIds": [
"{{$.getIdentity.id}}"
],
"accessConstraints": [
{
"type": "ENTITLEMENT",
"ids": {{$.hTTPRequest1.body[*].id}},
"operator": "SELECTED"
}
]
},
"roleCompositionCampaignInfo": null,
"machineAccountCampaignInfo": null,
"mandatoryCommentRequirement": "ALL_DECISIONS"
}