Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Create ticket on user termination for managed application

singh
New Contributor II
New Contributor II

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": ""
}
}
]
}

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

What is error you are getting ? how task is generated ? via User update rule ?


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

adarshk
Saviynt Employee
Saviynt Employee

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.