I want to call script include in scheduled job
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2021 12:44 AM
Hello,
I want to call the script includ in the scheduled job.
How can I call ?
Thanks,
Sanket
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2021 12:51 AM
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
Muhammad
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 04:29 AM
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 ??