- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2016 08:34 AM
Hi All,
I'm attempting to set up the ability in ServiceNow for a "System" to auto fill the "Business Service" it's associated with when entered. For example you could type "Kiosks" into the system field and the system will see "Kiosks" is on the downstream relationship for "End User Computer" therefore automatically fills this field.
To explain here is an example
Both fields shown
"System" is lined to the configuration Items table so there are tons of these but I would only need to worry about the ones under a business service.
I've attempted to build this with a business rule already but this only applies the change when the page is updated. I'd like it to do this automatically whilst entering the data.
Any help would be great, thanks!
Solved! Go to Solution.
- Labels:
-
Instance Configuration

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2016 08:38 AM
You need to write an onChnage client script and use GlideAjax to call the script include and return the sys_id of the business service. Let me know if you need any help in scripting.
http://wiki.servicenow.com/index.php?title=GlideAjax

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2016 08:38 AM
You need to write an onChnage client script and use GlideAjax to call the script include and return the sys_id of the business service. Let me know if you need any help in scripting.
http://wiki.servicenow.com/index.php?title=GlideAjax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2016 08:40 AM
Hi David, there's already a UI action / script include that does that...
the code is within the UI action: Refresh Impacted Services on the incident table. You can navigate to it through the following link (just replace the yourinstanceurl with your instance url )
yourinstanceurl/nav_to.do?uri=sys_ui_action.do?sys_id=038c59e7135caa0092ea73304244b01c
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2016 08:52 AM
Hi Berny,
Is there a way to do this without scripting? Its not an area I'm skilled in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2016 08:59 AM
Hi David,
You're doing this from the on-call module, right? You do will need to do a little bit of scripting but the good news is that in most part everything is already done. I'm not sure on which context your "system" exist but the way the script works is that base on a given CI the system understands which related services are impacted. Out of the box this is a UI action in incidents.
Thanks,
Berny