need to remove hard coded sys ids ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2017 09:09 AM
Developer Community harshtimes shloke04 explorenow
i need to remove the hard coded sysid value in my client script how to do it?
the script sets default assignment group i need to remove the hardcoded sysid value
function onLoad() {
//Type appropriate comment here, and begin script below
if(g_form.getValue('assignment_group') == '' && g_form.getValue('state') == 1 ){
g_form.setValue('assignment_group', "3a1fc5c5cd9d1100ef0e15a8c4f356");
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2017 05:23 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2017 06:38 PM
You need to convert these to UI Policies.
http://wiki.servicenow.com/index.php?title=Creating_a_UI_Policy#gsc.tab=0
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022