- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2016 09:12 PM
I want the system to send email when contracts reach or over expiration condition , The email will notify everyone in group. For example , contract ends on 30/12/2017. For example , contract ends on 30/12/2017. Notification condition is 6 months before end date. So the system should send notification from 1/6/2017 ,1/7/2017, 1/8/2017.... until the contract is renewed or extended.
Now I used condition checks within 180 days and used "Contract Threshold breached" on notification
>> I want to email notification on the 1st date of each month (within 180 days) How I config this.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2016 10:22 PM
Since you want to send email to each user whose contract will end.
so trigger event from the script and set the recipient in mail notification script from the value of event parm
http://wiki.servicenow.com/?title=Scripting_for_Email_Notifications#gsc.tab=0

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2016 09:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2016 09:54 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2016 10:06 PM
Query on user table list view and copy the query from there then use that in scheduled script like below. use mail script to send mail to event.parm1
var gr = new GlideRecord('sys_user');
gr.addEncodedQuery(queryString);
gr.query();
while (gr.next()) {
gs.eventQueue("event name", current, gr.email);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2016 10:17 PM
where the data tell to send mail on Every Month first day , many thank you