how to generate scheduled job on 15 jan every year?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2016 02:57 AM
how to generate scheduled job on 15 jan every year and suppose year is leap year then what to do ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2016 05:50 AM
Can I write the above script without event registry ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2016 06:09 AM
you mean, without creating event?
Yes, can be done.. you just need to delay the script execution for 24 hours. You can also replace the above code as:
if((currYear%4)==0)
{
sleep(86400);
var req = new GlideRecord("sc_request");
req.assignment_group = 'sys id of group where request should be routed';
req.insert();
}
else
{
var req = new GlideRecord("sc_request");
req.assignment_group = 'sys id of group where request should be routed';
req.insert();
}
-------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2016 10:12 AM
thankyou anurag