Trigger weekly notification
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2024 07:27 AM
Hi All,
I need to send weekly notification as per below requirement:
Table : sn_vul_app_vulnerable_item
To Whom : Assigned To
When : Monday
Content : Link of all vulnerable item assigned to that specific person
Please help me how can I achieve it.
Thanks,
Saurabh
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2024 08:38 AM
Hi @coolsaurabh For this you need 3 things.
1. Event - System >> Event Registry
2. Notification - System Notification >> Email >> Notifications
3. Scheduled Job - System Definition >> Scheduled Job.
Use below script in Scheduled Job script condition
var gdt = new GlideDateTime();
var dayOfWeek = gdt.getDayOfWeekLocalTime();
if (dayOfWeek == 1)
answer = true;
else
answer = false;
Refer below thread to send notification via scheduled job