Email Hyper Link validation

Appu
Tera Guru

HI Experts,

I have a requirement in which i am sending the users with email notification which contains the hyperlink to the record.
now the requirement is how to make that link valid for only 1week from that date and time it was sent.

ThankYou.

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Appu 

you cannot have any validity for that link.

To achieve this there could be some custom solution etc which says create a date/time field which says when the email was sent and to whom.

If user navigates to that record then you can use onLoad client script and check now time and that date/time field value.

But that solution is not reliable, what if user visits the record not via email but from native and the validation will still run.

1 way is to include something extra in URL parameter along with hyperlink, this way you can know in onLoad client script if user came via email or not.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

actually email is sent when the ui action is clicked and also there is date and time field which captures date and time when the button was clicked.
also i found that there is processor script
"sys_processor.LIST"
when the link is opened it redirects the users based on the calculations in that script
I was thinking to embed some code in the link and when opened calculate the date and time and allow or restrict the access.
not sure how to write that script.