function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sen19sen19 

email link expiry sent from workflow

I have a workflow/process builder which is sending mail to user. The mail will contain an link which should valid for 48hrs.
How can I achieve this? Pls help in this.
VinayVinay (Salesforce Developers) 
Hi Ananga,

Unfortunately, we do not have option to set link expiry from workflow/processbuilder.

You can post your idea on below link so that this would be taken on roadmap in coming releases.

https://trailblazer.salesforce.com/ideaSearch

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar
sen19sen19
Thanks..but is there any alternate solution in Apex?
VinayVinay (Salesforce Developers) 
Hi Ananga,

Yes, this might can be done using apex.

Found below examples kindly review.

https://www.forcetalks.com/salesforce-topic/how-to-set-expire-a-link-after-one-time-click-in-salesforce/
https://salesforce.stackexchange.com/questions/71831/link-that-should-expire-in-24-hrs/71835

Thanks,
Vinay Kumar