Comments on: Execute Scheduled Jobs From Script https://servicenowguru.com/scripting/execute-scheduled-jobs-script/ ServiceNow Consulting Scripting Administration Development Thu, 07 Mar 2024 20:00:48 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Ishan https://servicenowguru.com/scripting/execute-scheduled-jobs-script/#comment-7867 Mon, 05 Jun 2017 19:39:28 +0000 https://servicenowguru.wpengine.com/?p=2846#comment-7867 In reply to Travis.

That tip ! Works like a charm !

]]>
By: Mark Stanger https://servicenowguru.com/scripting/execute-scheduled-jobs-script/#comment-7866 Wed, 26 Oct 2016 13:53:44 +0000 https://servicenowguru.wpengine.com/?p=2846#comment-7866 In reply to Travis.

Thanks Travis! Great tip!

]]>
By: Travis https://servicenowguru.com/scripting/execute-scheduled-jobs-script/#comment-7865 Wed, 26 Oct 2016 13:52:49 +0000 https://servicenowguru.wpengine.com/?p=2846#comment-7865 Just to add to this. If you are wanting to do this from a Scoped App. The line:

SncTriggerSynchronizer.executeNow(rec);

needs to be changed to:

gs.executeNow(rec);

]]>
By: MaC https://servicenowguru.com/scripting/execute-scheduled-jobs-script/#comment-7864 Tue, 01 Dec 2015 03:28:13 +0000 https://servicenowguru.wpengine.com/?p=2846#comment-7864 Awesome mate

]]>
By: Mark Stanger https://servicenowguru.com/scripting/execute-scheduled-jobs-script/#comment-7863 Tue, 03 Jan 2012 22:15:26 +0000 https://servicenowguru.wpengine.com/?p=2846#comment-7863 In reply to Bryan.

No problem. I’m glad it helped!

]]>
By: Bryan https://servicenowguru.com/scripting/execute-scheduled-jobs-script/#comment-7862 Tue, 03 Jan 2012 18:54:55 +0000 https://servicenowguru.wpengine.com/?p=2846#comment-7862 Thanks for the info, I’ve been looking for this syntax on the SN wiki without any luck.

]]>
By: Dennis https://servicenowguru.com/scripting/execute-scheduled-jobs-script/#comment-7861 Tue, 20 Dec 2011 15:14:08 +0000 https://servicenowguru.wpengine.com/?p=2846#comment-7861 In reply to Mark Stanger.

Thanks Mark, it is funny as you wrote this, I also received another reply from the SN forum for the same thing. Not sure why I did not check the form first. Will start to make this a habit before asking questions. Thanks again Mark and have a great day!!!

]]>
By: Mark Stanger https://servicenowguru.com/scripting/execute-scheduled-jobs-script/#comment-7860 Tue, 20 Dec 2011 14:38:58 +0000 https://servicenowguru.wpengine.com/?p=2846#comment-7860 In reply to Dennis Smith.

@Dennis, I don’t have any script that would do this, but what you are asking for is possible just by checking the ‘Omit if no records:’ field on the scheduled report form.

]]>
By: Dennis Smith https://servicenowguru.com/scripting/execute-scheduled-jobs-script/#comment-7859 Tue, 20 Dec 2011 14:13:15 +0000 https://servicenowguru.wpengine.com/?p=2846#comment-7859 I wanted to see if there is a good client side script that I can use for scheduled reports. I would like to have a script that will check and see if the report contains any data, and if it does, then send as scheduled. If it does not contain any data I would like to have the script stop the scheduled send of that report until the next scheduled time and then to follow the logic again.

For instance a report scheduled to run tomorrow automatically and yet there are no overdue incidents in the report for this scheduled job, the script should say that since there are no overdue incidents this week, the report does not run

]]>
By: Mark Stanger https://servicenowguru.com/scripting/execute-scheduled-jobs-script/#comment-7858 Mon, 03 Oct 2011 13:56:14 +0000 https://servicenowguru.wpengine.com/?p=2846#comment-7858 In reply to Abhiram Bharadwaj Diddigi.

I don’t have them documented, and actually their use is discouraged by ServiceNow development so you should avoid them whenever possible. In this case, there’s no other way to do it so I used the packages call.

]]>