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
Alexy1967Alexy1967 

Send Email URL hack not passing multiple parameters

I'm trying to create a custom button on Task that will auto close the task and launch the Send Email form.

 

I have gotten this far:

 

/{!Task.Id}/e?&tsk12=Completed&save=x&saveURL=/_ui/core/email/author/EmailAuthor?p3_lkid={!Task.What}

 

I have two problems that I am struggling to overcome:

 

1.

I am unable to add more than 1 parameter to be passed to the send email form

 

If I add &p2_lkid={!Task.Who} or&p6=Order Confirmation

 

none of the parameters are passed through to the send email form..... the hacked url just seems to end at the first parameter p3_lkid={!Task.What}

 

2.

Once the email is sent, I am returned to the home page..... I cannot work out how to return either to the orininal task or the Related To record

 

Thanks in advance for any help/advice

 

Best Answer chosen by Admin (Salesforce Developers) 
Alexy1967Alexy1967

after much gnashing of teeth..... URL encoding

 

/{!Task.Id}/e?&tsk12=Completed&save=x&retURL=/_ui/core/email/author/EmailAuthor%3Fp3_lkid%3D{!Task.What}
%26p2_lkid%3D{!Task.Who}%26p6%3DConfirmation of Purchase%26retURL%3D%2F{!Task.What}