I want to call script include in scheduled job

Sanket10
Tera Expert

Hello,

 

I want to call the script includ in the scheduled job.

How can I call ?

Thanks,

Sanket

2 REPLIES 2

MrMuhammad
Giga Sage

Hi,

If Scheduled job and script include is in the same scope, then

var obj = new SCRIPT_INCLUDE_NAME().FUNCTION_NAME();

For calling the global Script include from scoped app

var obj = new global.SCRIPT_INCLUDE_NAME().FUNCTION_NAME();

Please refer Use script includes | Servicenow Docs

Hope that helps!

Regards,

Muhammad

Regards,
Muhammad

MaitriShah
Tera Contributor

Hey can you help me with the syntax of calling a script include in a schedule job and how can i pass the parameters to the script include ??