Email notification for events

twosister
Kilo Contributor

i have a customer req to extend the scope to 30/60/90/180 and 365 days.

I already have email notification being sent based on event fire for 30/60/90

Now should i copy the same and create one for 180 and 365 ?

I am not sure how to check how these events are fired I dont if its due to scheduled script exec/business rule any guidance on how to fullfill this task?

5 REPLIES 5

Sagar Pagar
Tera Patron

Hi,

 

Yes, you have to create/register events for 180 & 365 in event registry. Copy the apply the same logic and modify it for 180& 365 days. If condition matches, then fire the events.

 

Note:

1) if have different notifications for each events, then need to create notifications as well.

2) If have common notification, then no need to create new notifications.

 

Thanks,
Sagar Pagar

The world works with ServiceNow

Hi,

Good day!

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.

If not, let me know where you are stuck.

 

Thanks,
Sagar Pagar

 

 

The world works with ServiceNow

Yes there are different scheduled job, event and email notification for each ?

Can the job and emails be be combined ? 

possible with script?

 

 have this job for 90 days

var cnt = new GlideRecord("ast_contract");
cnt.addEncodedQuery('endsRELATIVEGT@dayofweek@ahead@89^endsRELATIVELT@dayofweek@ahead@91');
cnt.query();
while (cnt.next()) {
gs.eventQueue('reminder_contract_90_days', cnt, cnt.number);
}

From everything that I see, yes you can combine the job with the email notification items; and yes just like this with the eventQueue ... for each item/record that fits this criteria.