- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2016 06:30 AM
i would like to run send out email on last saturday of the month, how can i achieve that using scheduled job?
thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2016 08:19 AM
Hi Pooja,
Step 1, create an event. Event Registry - ServiceNow Wiki
Step 2: Create your scheduled job script. The scheduled job will only trigger an event if it meets the criteria I specified above "it is saturday, and it is the last saturday." Use gs.eventQueue() to trigger the event. GlideSystem - ServiceNow Wiki
Step 3: Create a notification that reacts to the event. Events and Email Notification - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2016 08:26 AM
thanks Tom. I will give it a try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2016 08:56 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2016 05:26 AM
Change your gs.print statements to gs.log. They will show up under System Logs> System Log> Script Log statements.
Also, consider using scripts background to test your script.
Faster Server Side Script Development and Test
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2016 07:36 AM
thanks Chuck.
i tried going to scripts background, but i saw blank page. even though i am sys admin, do i need special permissions to run scripts background?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2016 07:45 AM
Depending on the release of ServiceNow, you may need to elevate your access to security_admin. Starting in Helsinki, this is no longer required.