Get Current date on click of link in notification

Twinkle S
Mega Sage
Mega Sage

Hi,

I have notification which sends out to users with a link embedded in it. I want if user tries to open the link after 7 days it should be invalid (redirection to other page). But if they try to access before 7 days it should work. 

I am not able to get access of the current day in email script which I believe should work on ng-click. 

Any leads?

 

Thanks in advance

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Twinkle S 

once email is sent from ServiceNow you won't have the control on it.

How will you know if user actually clicked the link and came to record or user directly navigated to that record? Not possible to determine.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

Thank you for your reply. But I am able to do so now. 

The link is basically a service catalog item. I am doing validation onLoad now by getting the  appended parameter. I think my requirement mentioned here were not clear in itself.  

But got it to work.

 

Regards

Twinkle