Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Call script include

a41022639
Tera Contributor

Hello Community,

 

I want to call the script include from BR. How can I do it?

2 ACCEPTED SOLUTIONS

Abhishek_Thakur
Mega Sage
Mega Sage

Hello @a41022639 ,

 

You can use 'new global.'Script include' name.

View solution in original post

Abhishek_Thakur
Mega Sage
Mega Sage

If you require further assistance, please DM me.

View solution in original post

3 REPLIES 3

Abhishek_Thakur
Mega Sage
Mega Sage

Hello @a41022639 ,

 

You can use 'new global.'Script include' name.

Abhishek_Thakur
Mega Sage
Mega Sage

If you require further assistance, please DM me.

swathisarang98
Giga Sage

Hi @a41022639 ,

 

var si = new "<Script-Include-API-Name>()";

var fun = si.<Function_name>(if you want to send some variable value send from here);

 

OR 

 

var si = new <Script-Include-API-Name>.<FunctionName>();

 

Please check and Mark Helpful and Correct if it really helps you.

Regards,

Swathi Sarang