Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 04:43 AM
Hello @niveditakumari , You can compare with help of GlideDate API too, but why don't you write an encoded query and do this easily like below:
var grUser = new GlideRecord('sys_user');
grUser.addEncodedQuery('active=true^u_sf_date_of_birthONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()');
grUser.query();
while(grUser.next()){
gs.log("Hi, it's the user's birthday!:" + grUser.name);
gs.eventQueue("birthday.notification",grUser.name.toString(),grUser.email.toString());
}
Regards,
Nishant