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.

Not able to Excute Scheduled Job from the Script

Nikhil63
Tera Expert

Hi All,

 

I need to run a Scheduled job from the Workflow(by RunScript). 

 

I am using the below script to run my Scheduled job. but it's not working seems like 'SncTriggerSynchronizer'  Method is not supported here. 

 

var grJob = new GlideRecord('sysauto');
grJob.get('sys_id', ' ');
if (typeof SncTriggerSynchronizer != 'undefined') {
SncTriggerSynchronizer.executeNow(grJob);
//gs.info('entitlementsGK1 ' + scheduleid +'-- '+bankEntitlement);
}

 

 

2 REPLIES 2

Maik Skoddow
Tera Patron
Tera Patron

Jagadish Sanadi
Kilo Sage

Hello Nikhil,

 

Please try below code

var rec = new GlideRecord('sysauto_script');
Can you please try to glide on this table and check

Please mark useful if I have helped you