How to avoid use of sys_id in Client script

pradeepgupta
Giga Expert

Hi,

What is the best practice to avoid use of sys_id in client script.

E.g. onChange of category wanted to set assignment group to ABC.

if(category=='Test')

{

g_form.setValue('assignment_group', '196589360f6471008fdcfa6ce1050e3a(sys_id of ABC)', 'ABC');

}

How to avoid use of sys_id here, as we can not use gs.getProperty in client script? Any idea ?

12 REPLIES 12

Can you put some logs in your business rule and see if it running or not ?


Jusy fyi....



Properties are not domain separated, any property that you create will be accessible to all domains


-Anurag

Hi Pradeep,



Just a thought, since you are pulling the assignment group using a category, is there a valid category when the incident is in New state? Or are you handling the "--None--" case in your code?



Thanks,


Mandar