Trigger Business rule/client script from Record inserted/updated from API

Prateek1
Tera Contributor

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 ? 

3 REPLIES 3

Robert H
Mega Sage

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

shantanu_patel8
Mega Guru

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Prateek1 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader