How to call script include from Business RUle

lucky6
Tera Contributor

How can we call script include from Business rule.Please providee syntax for that

11 REPLIES 11

Hi @Ankur Bawiskar 

 

What would be the syntax for return value which needs to be used. is it just

example:

new function().value(); // script include name.function name
return(answer);
 

@Saurabh Singh5 

can you raise a new question with all the details and tag me there as this is an old thread?

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

What is "gs.info" for??

Vishakha
Mega Guru

Hi Lucky,

How to Call Script include in Business Rule?

As we know from above definition that script include in ServiceNow is a reusable script and can be accessible in any ServiceNow server-side script. 
So, we can call script include in business rule as mentioned below:


Call Script Include in Business Rule
 

You can refer below links as well for more understanding,

Call Script Include from Business Rule in ServiceNow:

https://www.youtube.com/watch?v=T9x4ZXAVurE

Explore Script Include ServiceNow with Examples | Script Include:

https://www.basicoservicenowlearning.in/2019/12/script-include-servicenow.html

 

Please mark correct and helpful if you find my response worthy based on the impact.

Regards,

Vishakha

Ankur Bawiskar
Tera Patron
Tera Patron

Hope you are doing good.

Let me know if that answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

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