Business Rule - When to run - insert or update into many tables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2023 11:07 PM
Hello All,
I'm new to scripting in Servicenow.
I have a Business Rule that is sharing data from cmdb_ci_server table in addition to fields from Location table.
I want the business rule to run if any insert or update into the server table and also in the location record related to it.
Is that possible? If yes, How?
Thanks,
Dina
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2023 11:13 PM
Hi, normal practice would be 2 after update BR's, one for cmdb_ci_server and one for your location table.
If the Br's are making exactly the same update, you may be able to create 1 script-include function and then call it from the 2 separate BR's. If an async update was acceptable another option would be to trigger sysevents from the BR's and and then consume them in a script-action.