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.

How to call Schedule job from Script include ?

Santosh Oraon
Tera Expert

Hello Team,

I have a requirement that from script include I want to trigger the Scheduled Job. In script include i have function that 

if my function return True then my schedule job got trigger and in that schedule job I have written gs.eventqueue(notification) that will be trigger after 30 min

1 ACCEPTED SOLUTION

@Santosh Oraon 

then why not write that scheduled job script within your script include?

no need to call schedule job then

if(function return value is true){

// your job script here

}

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

View solution in original post

6 REPLIES 6

@Santosh Oraon 

then why not write that scheduled job script within your script include?

no need to call schedule job then

if(function return value is true){

// your job script here

}

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

Thank you let me check with this logic