and more in a single search tool across platforms. Read the announcement here. |
01/08/2024 11:48 PM
How do we create ticket for managed application in case of user termination? I tried below but it not working -
{
"call": [
{
"name": "call1",
"connection": "${task.entitlement_valueKey.customproperty40 == 'XXXXXX' && task.tasktype == 2?'userAuth':''}",
"url": "XXXXXXXXXXXXXXXXXXXXXXXXX",
"httpMethod": "POST",
"httpParams": "{\"sysparm_quantity\": \"1\", \"variables\": {\"requested_for\": \"XXXXXXXXX\",\"short_description\": \"Saviynt Request ID - ${task.requestKey!=null?task.requestKey?.processinstanceid?.substring(task.requestKey?.processinstanceid?.indexOf('.') + 1, task.requestKey?.processinstanceid?.length()):'NA'}\",\"description\": \"${task.entitlement_valueKey.customproperty40 == 'XXXXXX' && task.tasktype == 2?task.entitlement_valueKey.entitlement_value:''}\",\"application_name\": \"${endpoint.endpointname}\", \"support_group\": \"${task.entitlement_valueKey.customproperty6}\"}}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"ticketidPath": "result.number",
"successResponses": {
"statusCode": [
200,
201
]
},
"unsuccessResponses": {
"message": ""
}
}
]
}
01/09/2024 08:28 PM
What is error you are getting ? how task is generated ? via User update rule ?
01/09/2024 11:21 PM
Hi @singh
Can you please eloborate the user case on how the termination is triggerd? Is it hitting the Json block correctly? and what are the errors observer ion logs when the termination is triggered / when system tries to evaluate JSON and create ticket.