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
morleymorley 

cancelURL for emailauthor.jsp

Hi there ... I'm trying to use the cancelURL parameter and I can't make it work.
 
I have a custom button that takes the user to emailauthor.jsp and specifies a retURL that points to my custom component, which works just fine. What I want to do now is also specify a cancelURL parameter, but when I put it in the URL and click Cancel, it just takes me to the retURL every time.
 
Has anyone done this successfully? Here's my URL:
 
Code:
https://na2.salesforce.com/email/author/emailauthor.jsp—p2_lkid=0014000000FDcPc&rtype=003&p3_lkid=00640000008LyLj&retURL=%2F00640000008LyLj&cancelURL=%2F00640000008Lmev

 
Thanks,
 
Glenn.
Asif Ali MAsif Ali M
I am not sure if cancelURL parameter work on EmailAuthor page. Rather you can try the below params 

saveURL = URL to return to after the email is sent. If you dont define this then the user will be redirected to retURL 
retURL =  URL to return to if the user clicks Cancel