- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 11:46 AM
Is it possible to trigger multiple scheduled jobs from a script?
There are around 20 scheduled jobs (these are being found as I've logged them out) but I can't seem to find anything on triggering all these jobs? I know it's possible to trigger one. Any help would be great.
Thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 11:58 AM
You can use
SncTriggerSynchronizer.executeNow(current);
where current is a record from sysauto.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 11:58 AM
You can use
SncTriggerSynchronizer.executeNow(current);
where current is a record from sysauto.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 03:44 AM
Thanks Drew. I was able to get this working. I wouldn't work with a gliderecord to sysauto but did work on scheduled_import_set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 01:52 AM
@dev_123 ,
Please use ,
var gr = new GlideRecord('sysauto_script');
gr.addQuery('name', 'YOUR_JOB_NAME_HERE');// apply filter according to your requirement.
gr.query();
while(gr.next()){
SncTriggerSynchronizer.executeNow(gr);
}
Please mark my answer helpful or accept it, if it works for you!