- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 11:34 PM
I have a need to send an email reminder notification to users 14 days before the variable end_date for a service catalog item.
If the end date is 4/11, I need an email reminder to send on 3/28. How would I accomplish this?
Thank you.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 11:55 PM
Hi,
you can also use flow designer with no script
check this
Approval Reminder for Approval Records using flow designer
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 11:51 PM
Hi,
you can use this approach
1) Event and notification on sc_req_item table
2) daily scheduled job
Script as this
1) give your catalog item name
2) give your date variable name
3) give your event name
sendReminder();
function sendReminder() {
var task = new GlideRecord('sc_req_item');
task.addQuery('active','true');
task.addQuery('cat_item.name', 'Your item Name');
var encodedQuery = task.variables.dateVariable + 'RELATIVEGE@dayofweek@ahead@14^' + task.variables.dateVariable + 'RELATIVELE@dayofweek@ahead@15';
task.addEncodedQuery(encodedQuery);
task.query();
while(task.next()){
gs.eventQueue('event_name', task, 'recipients');
}
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2022 04:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2022 05:09 AM
Hi,
I believe you are pretty new in ServiceNow. I would suggest to refer few of the basic courses.
Please refer docs for help
ServiceNow Email Notification via Event
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 01:29 AM