How to display the planned start and end Date(in user's time zone) in approval request notification

kelechi
Kilo Expert

Hi all

Please I'd like to display planned start date and planned end date in approval request email notification.

i have checked the glide.email.append.timezone in email properties and still no joy.

Please how do i do this?

1 ACCEPTED SOLUTION

kelechi
Kilo Expert

I eventually found the answer. I used the following scripts and it did the trick



Planned start: ${sysapproval.start_date}


Planned end: ${sysapproval.end_date}


View solution in original post

2 REPLIES 2

Prasun
Giga Guru

The way I did it long back, you need to customize the notification.


Call a Notification email script where you want to show the Start and End date. In the Notification email script using GlideDateTime functions you can convert the start and end date into Approver/User's time zone and can print there.



useful information can be found in below links!



GlideDateTime - Scoped


JavaScript in emails


kelechi
Kilo Expert

I eventually found the answer. I used the following scripts and it did the trick



Planned start: ${sysapproval.start_date}


Planned end: ${sysapproval.end_date}