- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2017 02:56 PM
Hello everyone.
I have a Business Rule, and I want to run it periodically, to validate an expiration date on a record, the BR works properly, but because of the nature of BRs I have to either update or insert the form, for it to trigger, I read that we could run it from an scheduled job, but I haven't found the way to set the relation between them.
var now = gs.endOfYesterday();
var vigencia = current.u_fecha_fin; //expiration dateif(vigencia < now){
current.u_hrs_vencidas = current.u_hrs_restantes;
current.u_hrs_restantes = 0;
current.u_activo = 'true';
gs.addInfoMessage("TEST");
}
Could anyone please help me find the best way to do this?
Thanks in advance and regards!.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2017 12:56 PM
Hi Irving,
I recommend to you, this app developed by Chui Tomasi.
Scriptless Scheduled Jobs - YouTube
P.S. Please hit like, helpful or correct for my responses as they apply to you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-19-2017 07:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-19-2017 08:09 PM
Hi Jerry, You'll see, there are two different "scheduled jobs" modules, one of them belongs to the System scheduler application, and the other one to the system definition Application. You will find the Autoclose Incidents scheduled job in the Module found in System scheduler application (modify the next URL to access to the list on your instance: https://YOURINSTANCENAME.service-now.com/sys_trigger_list.do)
Also, the form from your screenshot, belongs to the scheduled jobs module found in the System Definition application
By the way we're running
"Build name: Helsinki
Build date: 11-08-2016_1607
Build tag: glide-helsinki-03-16-2016__patch7-11-02-2016"
Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2017 06:15 AM
Got it and thanks lot!
Jerry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2023 06:05 AM
How to execute this job like we have execute now for the other script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2017 12:56 PM
Hi Irving,
I recommend to you, this app developed by Chui Tomasi.
Scriptless Scheduled Jobs - YouTube
P.S. Please hit like, helpful or correct for my responses as they apply to you