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

How to skip createticket based on task type

saurabhpad
New Contributor II
New Contributor II

Hi,

We have below requirement.

1. Provision service desk application on account user creation but not to create snow ticket

2. create snow ticket on user disabl

So we have made application as birthright account but we dont want to call craeteticket JSON, we want to call this json on disable account

Is there any way to achieve this in service desk application.

7 REPLIES 7

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @saurabhpad ,

I am checking on it, will keep you posted with the updates.

Thanks

If you find the above response useful, Kindly Mark it as "Accept As Solution".

Call dummy URL on url condition

      "url": "${requestAccessAttributes.addRemoveAlias==null?'https://<domain name>/admin/directory/v1/users/'+account.name:account.customproperty30.toString().contains(requestAccessAttributes.addRemoveAlias)?'https://<domain name>/admin/directory/v1/users/'+account.name+'/aliases/'+requestAccessAttributes.addRemoveAlias.trim():'https://<domain name>/admin/directory/v1/users/'+account.name+'/aliases'}",

 

Sample 


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

ashutoshkumar16
New Contributor II
New Contributor II

@saurabhpad @rushikeshvartak  @sudeshjaiswal  , I have the Similar requirement is when Remove account task is generated, Servicenow ticket should not be generated.

@rushikeshvartak, we have tried your solution but we are not able to dynamically bind the ticketidpath as a result, in the task it is showing "ERROR in Getting ticket number" and the task will hang in the pending task list until we manually discontinue the task. 

We have tried below code but it did not work out 

"ticketidPath":"${task.source == 'REQUEST' ? response.result.sys_id : response.result.number}",
"ticketidPath":"${task.source == 'REQUEST' ? response.completeresponsemap.result.sys_id : response.result.number}",
"ticketidPath":"${task.source == 'REQUEST' ? 'Dummyva': result.number}",
Only this below code is working 
"ticketidPath": "result.number",

don’t pass connections using if else


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

I have updated the Create ticket Json connection as below but still getting the same response 

"connection": "${task.source == 'REQUEST' ? '' : 'userAuth'}",

:Error in getting Ticket Number. Response: null"

 

 

"connection": "${task?.source?.equalsIgnoreCase('REQUEST')?'':'userAuth'}"

 


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

Hi @rushikeshvartak , above code did not work, it still creating a task and with the same provisioning comments, "Error in getting ticket number"