Get Current date on click of link in notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 03:46 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 04:11 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2023 04:04 AM
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