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

Thanks Chuck,



I tried this but I can't find the actual field in the tree:



find_real_file.png



No idea what it is trying me to show.



Any ideas how I can get to the actual field named Review Date



Thanks,


Riaz


Riaz,



Choose the option "a date/time field.." in the timer based on dropdown


Hi Chuck,



Quick question on this. Can I trigger and Incident from a workflow?



Riaz


Hi Riaz,



You can create an incident from a workflow, if that's what you are asking. Use the "Create Task" activity and set the table to incident. Pretty simple.



Task Activities - ServiceNow Wiki


Hi Chuck,



Thanks the reason I asked was because my workflow table was ast_contract. However, I achieved this now through the Run Script.



Thanks,


Riaz