I want to trigger a scheduled job from Business rule..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2018 04:45 AM
I want to trigger a scheduled job from Business rule.. Can anyone let me know if it's possible and if yes then how? Many thanks
Labels:
- Labels:
-
Scripting and Coding
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2020 12:49 AM
function executeTrigger(sys_id) {
var gr = newGlideRecord('sys_trigger');
gr.get(sys_id);
//cannot setWorkflow false, the child jobs will not be triggered
gr.next_action.setDateNumericValue(0);
gr.update();
}
var sysid = //sys_id of the scheduled job you want to trigger
executeTrigger(sysid)​