Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Send email notification when date is reached

riaz_mansuri
Kilo Guru

Hi,

I want an email to be sent when a specific date field has reached 30 days before the actual date.

I have set this on the contracts table but is it not working, does anyone know a script I can use?

find_real_file.png

The field is a date field called u_review_date

When this is less than 30 days away and email notification should be triggered.

Any ideas?

Thanks

1 ACCEPTED SOLUTION
23 REPLIES 23

I'm glad you got it resolved.


Hi Chuck: I have an itil user in my organization that wants to schedule an email for an incident to be sent on a specific date. Is there an easy way for an itil user to do so themselves without me scheduling a job for them? Thank you. Rita


Hi Rita,



If you are using a scoped app, you can use delegated development (Helsinki and above) to allow non-admins the ability to send a notification. If it is scheduled (runs once a day at 2:00AM for example) that still requires admin privileges.


Hi Chuck: I think this will give them too much power. I simply want them to add a comment but have it scheduled to be sent on a future date. No such a thing, huh? Thx


Hi Rita,



Just so I understand completely... can you elaborate on what you are trying to do? I seem to have gotten requirements a bit mixed up on this one. They could enter a date and your scheduled job can check for records that match the criteria (e.g. date is <= to now and no notification has been sent.)