We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Bindinga Variable (Dynamic attribute to pass in Create Ticket JSON for SNOW)

kmashwini
New Contributor III
New Contributor III

I need binding variable/dynamic attribute for getting entitlement values where access is request from ARS page. Also need binding variable for tasktypename , currecntly I am using  ${task.requestKey.requesttype} or ${task.tasktype} this both gives number of task type , example if it is add access 1 , add account 3 . I need dynamic attribute to get task type name example : add acess , new account. 

Entitlements value & task type name both dynamic attributes I need.

4 REPLIES 4

armaanzahir
Valued Contributor
Valued Contributor

Hi @kmashwini 

 

Please use ${allEntitlementsValues} for fetching entitlements

For task type, you need to explicitly specify the task type value based on the tasktype obtained using if else conditions. 

Something like the below snippet:

${if(task.tasktype==1){'Create'}else if(task.tasktype==2 && (allEntitlementsValues==null || allEntitlementsValues.isEmpty() || allEntitlementsValues=='')){'Delete Account'}else if(task.tasktype==2 && task.source=='REQUEST'){'Remove'} else if(task.tasktype==2 && task.source=='ANALYTICS_V2'){'Remove'} else if(task.tasktype==2 && task.source=='CERTIFICATION'){'Remove'}else if(task.tasktype==3){'New Account'}else if(task.tasktype==6){'Enable Account'}else if(task.tasktype==14){'Suspend'}else{task.tasktype}}

 

Please refer to the below documentation for samples on createticketjson
ServiceNow as a Ticketing System (saviyntcloud.com)

Regards,
Md Armaan Zahir

Thanks  . Can I get task type number and their values ..(example 1 : add access) 

armaanzahir
Valued Contributor
Valued Contributor
TASK TYPEValue
1TASKTYPE_ADD
2TASKTYPE_DEL
3TASKTYPE_NEWACCOUNT
4TASKTYPE_UPDATEENTITLEMENTACCESSADD
5TASKTYPE_CHANGEPASSWORD
6TASKTYPE_ENABLEACCOUNT
7TASKTYPE_PROPOSEDACCOUNTOWNERS
8TASKTYPE_DELETEACCOUNT
9TASKTYPE_UPDATEUSER
12TASKTYPE_UPDATEACCOUNT
13TASKTYPE_PROPOSEDENTOWNERS
14TASKTYPE_DISABLEACCOUNT
23TASKTYPE_MODIFYPRIVILEGE
24TASKTYPE_CREATEENTITLEMENT
25TASKTYPE_UPDATEENTITLEMENTACCESSADD
26TASKTYPE_UPDATEENTITLEMENTACCESSREMOVE
27TASKTYPE_UPDATEENTITLEMENT
28TASKTYPE_DELETEENTITLEMENT
29TASKTYPE_FIREFIGHTERIDGRANTACCESS
30TASKTYPE_FIREFIGHTERIDREVOKEACCESS
Regards,
Md Armaan Zahir

Thanks for the informations