how to call script include in business rules what types will be used after before async or display ?

harshshree7
Tera Contributor

how to call script include in business rules and which types will be used after before async or display ?

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@harshshree7 

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.

 

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

Hanna_G
Kilo Sage

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! 

SANDEEP DUTTA
Tera Patron
Tera Patron

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

 

Thanks,
Sandeep Dutta

Please mark the answer correct & Helpful, if i could help you.