- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2015 06:04 AM
I have a custom script that runs as a Scheduled Job. There are times that I would like to kick off that job on-demand from another script (or even a workflow). Is there an API to find the scheduled job and execute it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2015 06:34 AM
Hello Joanne,
Please refer to this section in the documentation:
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2015 06:37 AM
Any reason why she couldn't just skip straight to SncTriggerSynchronizer.executeNow( sys_id_of_scheduled_job ); ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2015 06:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2015 06:50 AM
Pffft! No need to apologize NOWBro. I'm just wondering if I'm missing something by not having the gliderecord first.
It looks like the main difference is mine holds the sys_id, where as the wiki's holds the entire object. Not sure if that'll be problematic ro not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2015 06:55 AM
Thanks all! Can't believe I missed that in the doc. Appreciate the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2015 06:57 AM
Oh! I see! Sorry again! haha I didn't spot that, I thought it was exactly the same code!
I was checking the UI action, it seems that you do need to pass the GlideRecord object, not completely sure if it will work with the sys_id.