- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2014 02:49 AM
var gr = new GlideRecord('u_email_object');
gr.addActiveQuery();
gr.addEncodedQuery('u_expiration_dateBETWEENjavascript:gs.daysAgoStart(0)@javascript:gs.endOfNextWeek()');
//query above would find records active whose expiration date field value is today
gr.query();
while (gr.next()){
gs.log(gr.u_number);
gs.eventQueue('expiration.date',current,current.u_owner,current.u_alias);
//gs.log("testing");
}
is there any syntax wrong while calling the event expiration.date??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2014 02:59 AM
Hi Rakesh,
Current won't work in Scheduled Jobs.
That is the reason your Event is not getting triggered.
Try using this:-
gs.eventQueue('expiration.date',gr,gr.u_owner,gr.u_alias);
Thanks,
Subhajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2014 03:27 AM
HI anurag
in eventlogs i am able to see parm1 i.e U-owner . but not able to send an email that person using notification .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2014 02:59 AM
Hi Rakesh,
Current won't work in Scheduled Jobs.
That is the reason your Event is not getting triggered.
Try using this:-
gs.eventQueue('expiration.date',gr,gr.u_owner,gr.u_alias);
Thanks,
Subhajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2014 03:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2014 03:20 AM
anything in the ecc queue to indicate if it was processes successfully or errored ?
and who is / are the receipients ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2014 03:25 AM
HI Julian
I am not able to see any entries in ECC queue related to this job. recipients are users in the instance(randomnly selected to chk ).in real it should be sent to service desk suport group.