how to call script include in business rules what types will be used after before async or display ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2025 02:25 AM
how to call script include in business rules and which types will be used after before async or display ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2025 02:34 AM
answer to your question is easily available on docs, blogs and youtube videos.
did you try exploring those?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2025 02:35 AM
Hi there,
It depends on what you are looking to achieve, but as a general:
You will need to make sure your script include is accessible - Either Client Callable, Global etc.
Then in your business rule you can reference it. For example, create a variable and call it in like this:
var myScript = new MyScriptInclude();
In terms of which types to use for the business rules - this post has a great explanation on it: Solved: Types of business rules with example. - ServiceNow Community
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2025 02:37 AM
Hi @harshshree7 ,
There are so many Articles available like these, which can get you started :
How To Call a Script Include from a Business Rule In ServiceNow - The Snowball
How To Call A Script Include From A Business Rule | Snowycode
Solved: How to call a script include via Business rule - ServiceNow Community
Sandeep Dutta
Please mark the answer correct & Helpful, if i could help you.