Email notification with specific to date

Anirudh29
Tera Contributor

Hi , 

I need to configure a notification based on contract table. The notification needs to be triggered when the end date of the contract is one week from the current date. 

I have configured a notification with scheduled script and event trigger, but am not getting the accurate solution. The notification triggers for expired records also. When a new contract is created with expiry date as next week the notification is not triggered.

Suggest a solution for this use case.
I'm attaching the code snippet below for the reference.

Thanks.
#servicenow #notifications #email #itsm 

1 ACCEPTED SOLUTION

AshishKM
Kilo Patron
Kilo Patron

Hi @Anirudh29,

The contract module already has configuration for 30 60 90 days expire notification, you can add your desire day in the same setting, 

AshishKMishra_0-1707140295848.png

AshishKMishra_1-1707140359195.png

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

View solution in original post

3 REPLIES 3

AshishKM
Kilo Patron
Kilo Patron

Hi @Anirudh29,

The contract module already has configuration for 30 60 90 days expire notification, you can add your desire day in the same setting, 

AshishKMishra_0-1707140295848.png

AshishKMishra_1-1707140359195.png

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Thanks a lot @AshishKM  for your solution.

Good to know that it works for you, 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution