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

Need information regarding Ticket creation in Salesforce at the time of account creation in AD

mollasiraj
Regular Contributor
Regular Contributor

We would only want a ticket created in Salesforce for a new Active directory account.

Can anyone help me how can we implement this in saviynt.Currenlty I am using service desk option from the security system and selecting the sevice desk connection but it is creating the ticket at the time of account creation and deletion both but We need the ticket creation only at the time of Active Directory account creation.

7 REPLIES 7

rushikeshvartak
All-Star
All-Star

Use if else conditions in ticket json so that it won't trigger ticket creation for delete account


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

{
"call": [{
"name": "call1",
"connection": "acctAuth",
"url": "xxx",
"httpMethod": "POST",
"httpParams": "{\"ticket\":[{\"eeid_c\":\"${user.employeeid}\",\"Subject\":\"${endpoint.customproperty1} ${user.firstname} ${user.lastname}\", \"Description\":\"${endpoint.customproperty2}\", \"Cust_Type_c\":\"${endpoint.customproperty3}\", \"Item_c\":\"${endpoint.customproperty4}\", \"Cust_Category_c\":\"${endpoint.customproperty5}\"}]}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"ticketidPath": "CaseNumber",
"successResponses": {
"statusCode": [
200,
201
]
}
}]
}

 

The above format I am using can you provide me format which I need to use for my use case.

"url":${if(task.tasktype==3){'https://createticket.com'}else ('https://dummy.com')}"


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

mollasiraj
Regular Contributor
Regular Contributor

Need information

mollasiraj
Regular Contributor
Regular Contributor

{
"call": [{
"name": "call1",
"connection": "acctAuth",
"url": "xxx",
"httpMethod": "POST",
"httpParams": "${if(task.tasktype==3){'{\"ticket\":[{\"eeid_c\":\"{user.employeeid}\",\"Subject\":\"{endpoint.customproperty1} {user.firstname} {user.lastname}\", \"Description\":\"{endpoint.customproperty2}\", \"Cust_Type_c\":\"{endpoint.customproperty3}\", \"Item_c\":\"{endpoint.customproperty4}\", \"Cust_Category_c\":\"{endpoint.customproperty5}\"}]}'}else{'{}'}}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"ticketidPath": "CaseNumber",
"successResponses": {
"statusCode": [
200,
201
]
}
}]
}

I am using the above format but I am getting below error-

mollasiraj_0-1665156698522.png

Please let me know If I have to change anything in the json

https://help.salesforce.com/s/articleView?id=000328824&type=1


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

Hi I am not getting not much information to solve my issue