Hi @sidharth_tarlapally!
Thank you for the quick reply.
Here is the body of the create campaign (which doesn’t work as is):
{
“autoRevokeAllowed”: true,
“description”: “Description here”,
“deadline”: “2025-04-23T05:50:35.189Z”,
“emailNotificationEnabled”: true,
“name”: “TEST”,
“recommendationsEnabled”: true,
“searchCampaignInfo”: {
“identityIds”: [
$.getListOfIdentities.identities[*].id
],
“indices”: [
“accessprofiles,roles”
],
“query”: “NOT tags:TESTACCESS”,
“reviewer”: {
“id”: {{$.getIdentity.id}},
“type”: “IDENTITY”
},
“type”: “ACCESS”
},
“type”: “SEARCH”
}
Here is the complete workflow json file:
{
“name”: “Certification campaign Manager”,
“description”: “”,
“modified”: “2025-04-09T13:08:38.135854594Z”,
“modifiedBy”: {
“type”: “IDENTITY”,
“id”: “idhere”,
“name”: “firstname.lastname”
},
“definition”: {
“start”: “Interactive Form”,
“steps”: {
“Compare Strings”: {
“choiceList”: [
{
“comparator”: “StringEquals”,
“nextStep”: “Get List of Identities”,
“variableA.$”: “$.interactiveForm.formData.startaUppfoljningskampanj”,
“variableB”: “Ja”
}
],
“defaultStep”: “End Step - Success”,
“displayName”: “”,
“type”: “choice”
},
“End Step - Success”: {
“displayName”: “”,
“type”: “success”
},
“End Step - Success 1”: {
“displayName”: “”,
“type”: “success”
},
“Get Identity”: {
“actionId”: “sp:get-identity”,
“attributes”: {
“id.$”: “$.trigger.launchedBy.id”
},
“description”: null,
“displayName”: “”,
“nextStep”: “Compare Strings”,
“type”: “action”,
“versionNumber”: 2
},
“Get List of Identities”: {
“actionId”: “sp:get-identities”,
“attributes”: {
“inputManagedBy”: null,
“inputManagerOf”: null,
“inputQuery”: “manager.id:{{$.getIdentity.id}} AND !attributes.cloudLifecycleState:terminated”,
“searchBy”: “searchQuery”
},
“displayName”: “”,
“nextStep”: “HTTP Request”,
“type”: “action”,
“versionNumber”: 2
},
“HTTP Request”: {
“actionId”: “sp:http”,
“attributes”: {
“authenticationType”: “OAuth”,
“jsonRequestBody”: “{\n "autoRevokeAllowed": true,\n "description": "Description here",\n "deadline": "2025-04-23T05:50:35.189Z",\n "emailNotificationEnabled": true,\n "name": "TEST",\n "recommendationsEnabled": true,\n "searchCampaignInfo": {\n "identityIds": [\n$.getListOfIdentities.identities[*].id\n ],\n "indices": [\n "accessprofiles,roles"\n ],\n "query": "NOT tags:TESTACCESS",\n "reviewer": {\n "id": {{$.getIdentity.id}},\n "type": "IDENTITY"\n },\n "type": "ACCESS"\n },\n "type": "SEARCH"\n}”,
“method”: “post”,
“oAuthClientId”: “clientidhere”,
“oAuthCredentialLocation”: “oAuthInHeader”,
“oAuthScope”: null,
“oAuthTokenUrl”: “https://tenant.api.identitynow.com/oauth/token”,
“requestContentType”: “json”,
“url”: “https://tenant.api.identitynow.com/v3/campaigns”
},
“description”: “Create Certification Campaign”,
“displayName”: “HTTP Request 2”,
“nextStep”: “End Step - Success 1”,
“type”: “action”,
“versionNumber”: 2
},
“Interactive Form”: {
“actionId”: “sp:interactive-form”,
“attributes”: {
“formDefinitionId”: “XXXXXXXX-d718-404e-XXXX-1d78cec4f158”,
“interactiveProcessId.$”: “$.trigger.interactiveProcessId”,
“message”: “”,
“ownerId.$”: “$.trigger.launchedBy.id”,
“title”: “Certification Campaign Manager”
},
“displayName”: “”,
“nextStep”: “Get Identity”,
“type”: “action”,
“versionNumber”: 1
}
}
},
“creator”: {
“type”: “IDENTITY”,
“id”: “idhere”,
“name”: “firstname.lastname”
},
“trigger”: {
“type”: “EVENT”,
“attributes”: {
“filter.$”: “$[?(@.workflowId == ‘XXXXXXXX-1b70-47f2-XXXX-c194ad55992d’)]”,
“id”: “idn:interactive-process-launched”
}
}
}