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

@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.

 

Hanna_G
Mega 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!