You need to sign in to do that
Don't have an account?
Amit S
Need to Use a Custom Page on Send Email Button
Hi All,
Need to add Custom fields from Tasks Objects onto the Email Page once clicked on the Send Email Button.
Has anyone customized the Send email page? Is a VF Page and Custom controller the only option? Appreciate any help or Link to a similar peice of customization on this.
I have tried using window.location = '/_ui/core/email/author/EmailAuthor?p2_lkid=' + cont_result[0].Id + '&rtype=003&p3_lkid={!Account.Id}&retURL=%2F{!Account.Id}&template_id=00XN0000000QfDy'; but this allows only the Body of the email to be customized.
Where as I want Two Custom fields to be shown and allowed to pick values from the Email Page before sending.
Need to add Custom fields from Tasks Objects onto the Email Page once clicked on the Send Email Button.
Has anyone customized the Send email page? Is a VF Page and Custom controller the only option? Appreciate any help or Link to a similar peice of customization on this.
I have tried using window.location = '/_ui/core/email/author/EmailAuthor?p2_lkid=' + cont_result[0].Id + '&rtype=003&p3_lkid={!Account.Id}&retURL=%2F{!Account.Id}&template_id=00XN0000000QfDy'; but this allows only the Body of the email to be customized.
Where as I want Two Custom fields to be shown and allowed to pick values from the Email Page before sending.
[1] https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_email_outbound_messaging.htm
Check the below sample code thats close to your requirement. Hope it may help you! Regards,
Deepthi
Want to relate this email to the Account Record and be saved in the Activity History, shall the Controller be an extension to the Task Controller?
Yes, you can add this as an extension to your TaskController class. Hope it works.
Please let me know if required any help!
Regards,
Deepthi
I was able to build this custom Send Email page. But unable to add a add multiple attachments before sending the email. Have found a few blogs on adding custom pages to Pick Attachments but not sure how I will pass the context of the Email Page and get it back from the Multiple attachment uploader page. as the email is not yet send and does not have the Task Id yet. Appreciate any help on this.
Below is the Controller I have built so far.