- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2018 09:02 AM
My requirement is, whenever an user select ServiceNow integration in my application I will be making a call to a Scripted REST API and from that scripted api I want to create a business rule on the table specified by the user. So that I can receive change notifications on my web hook.
How can i achieve this?
Thanks in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2018 09:20 AM
a Business Rule(BR) is just a record in sys_script table. so really you are looking at calling the table API on the sys_script table to create a record,
in the BR record you can specify which table to assign to, so when you calling the table API, just specify the field with the sys_id of your target incident table. same with the scripts for the BR, it just stored in BR.script field I think.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2018 11:54 AM
All these users and tables belong to different SNOW instances.
I was thinking of injecting a BR in each users instance when they start the server and delete it when they stop it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2018 09:25 AM
Thanks a lot @Yifeng Zhang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2021 10:38 PM
I do not see `sys_script` in table API of serviceNow REST API Explorer. Can you please suggest, if there is other means, recent ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2021 10:44 PM
hope you are still remember this 🙂 !
We have a similar scenario to bootstrap a Business Rule to serviceNow from a system, with no human interaction possible..
So, tried to follow the suggestion, but I do not see `sys_script` in table API of serviceNow REST API Explorer. Can you please suggest, if there is other means, recent ?