How to avoid use of sys_id in Client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2015 02:45 AM
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 ?
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2015 11:14 PM
Can you put some logs in your business rule and see if it running or not ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2015 11:40 PM
Jusy fyi....
Properties are not domain separated, any property that you create will be accessible to all domains

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2015 11:49 PM
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