Trigger Business rule/client script from Record inserted/updated from API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 02:45 AM
Is there a way BR/ Client script depending on some onchange/onSubmit trigger if we insert or update any record in Snow Table .
Can ScriptedAPI solve this issue ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 03:04 AM
Hello @Prateek1 ,
Without more information about your requirement I can only say that yes, the purpose of Business Rules is to trigger when records are inserted or updated in ServiceNow tables.
On the other hand, Client Scripts run when a user interacts with a record in the ServiceNow user interface.
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 03:41 AM
Hi @Prateek1 ,
If the API is creating or updating the data in any of the table It will trigger all the relevant business rules on the table.
Client script wont be running as it works on client side or in simple words it requires user interaction on the form or list.
Mark the answer as correct and helpful if it resolves your issue. Happy Scripting 🙂
-Shantanu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 03:43 AM
what's your business requirement?
System will trigger business rule on record insert/update via API, but not client script as client scripts run on browser.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader