How do I include the number of days past due in a notification?

R_Schmidt
Tera Contributor

We are planning to send a notification out when an attestation is past due by 7, 14, 21, ... days.

What we would like is the body of the notification to say how many days the attestation is overdue by.

Something like "Your attestation is now overdue by <> days. Please complete the attestation as soon as possible."

We know how to include the Due Date field, but how do we include a computed value like ${(gs.dateDiff(due_date, gs.nowDateTime(), true) /60/60/24)}?

 

Note: We're on the Washington DC Release.

1 REPLY 1

SanjivMeher
Kilo Patron
Kilo Patron

This is what we do.

We have 3-4 scheduled job, which runs everyday to find out such attestation.

One scheduled job would only query attestation past due = 7 days.

One scheduled job would only query attestation past due = 14 days

And so on.

And then we trigger event to which then triggers the notification. 

In the event parameter, you can pass the number of days to the notification which will then be accessible using event.parm1 or event.parm2.


Please mark this response as correct or helpful if it assisted you with your question.