How to have Reply | Reply To All | Forward in e2a Related List?

Add Formula Field to add Reply | Reply All | Forward in e2a Related List

In the Related list, Salesforce provides with Edit | Del against each email to perform direct actions. This Actions field cannot be edited to further add any other functionality such as Reply or Reply To All or Forward. However, in the e2a related list on any Object (Standard/Custom) the Reply, Reply All, and Forward actions can be added by following some simple steps. Please follow the steps below to add Reply/Reply To All/Forward action links on the Lead object:


  1. Go to Setup | Objects | e2a Email
  2. Create a new custom field of type formula, return type 'Text' and relevant field label such as 'Email Actions'
    • .
  3. On step 3 of creating a custom field, use the HYPERLINK formula to set your desired redirection.

                  HYPERLINK (url, friendly_name [, target])


  1. In URL give the path of opening address, e.g. in this case we want to open an email client so the following URL could be used:  


  • URL for Reply action: /apex/ortoo_e2a__EmailClientInit?obj_name=ortoo_e2a__EmailMessage__c&email_id="& Id &"&retURL=/"&ortoo_e2a__Lead_Id__c&"&replyToAll=0
  • URL for Reply To All action: /apex/ortoo_e2a__EmailClientInit?obj_name=ortoo_e2a__EmailMessage__c&email_id="& Id &"&retURL=/"&ortoo_e2a__Lead_Id__c&"&replyToAll=1
  • URL for Forward action: /apex/ortoo_e2a__EmailClientInit?obj_name=ortoo_e2a__EmailMessage__c&email_id="& Id &"&retURL=/"&ortoo_e2a__Lead_Id__c&"&forward=1


  • URL for Reply action: /one/"& Id &"&retURL=/"&ortoo_e2a__Lead_Id__c&"&replyToAll=0
  • URL for Reply To All action: /one/"& Id &"&retURL=/"&ortoo_e2a__Lead_Id__c&"&replyToAll=1
  • URL for Forward action: /one/"& Id &"&retURL=/"&ortoo_e2a__Lead_Id__c&"&forward=1



      [ortoo_e2a__Lead_Id__c is the API name of the e2a Emails Lookup on the Lead Object]



  1. In friendly_name specifies the name to be shown, e.g. 'Reply'.
  2. In [,target] specify where the new page should be opened. _parent opens it in the current tab.

Example: If you want to add 'ReplyReply to All and Forward' functionality on an object named 'Custom Obj' and want to open the Object page when the 'Sent' or 'Cancel' button is pressed, then the following lines of code will work.


IF( $User.UITheme == 'Theme4d',
(HYPERLINK("/one/"& Id &"&retURL=/"&Custom_Object__c&"&replyToAll=0", "Reply", "_Parent")&" | " &
HYPERLINK("/one/"& Id &"&retURL=/"&Custom_Object__c&"&replyToAll=1", "Reply To All", "_Parent") &" | " &
HYPERLINK("/one/"& Id &"&retURL=/"&Custom_Object__c&"&forward=1", "Forward", "_Parent")),
(HYPERLINK("/apex/ortoo_e2a__EmailClientInit?obj_name=ortoo_e2a__EmailMessage__c&email_id="& Id &"&retURL=/"&Custom_Object__c&"&replyToAll=0", "Reply", "_Parent")&" | " &
HYPERLINK("/apex/ortoo_e2a__EmailClientInit?obj_name=ortoo_e2a__EmailMessage__c&email_id="& Id &"&retURL=/"&Custom_Object__c&"&replyToAll=1", "Reply To All", "_Parent") &" | " &
HYPERLINK("/apex/ortoo_e2a__EmailClientInit?obj_name=ortoo_e2a__EmailMessage__c&email_id="& Id &"&retURL=/"&Custom_Object__c&"&forward=1", "Forward", "_Parent")))


 More help on this function can be found on the Salesforce help documentation here: Formula Operators and Functions A–H


  1. Once the Email Actions field is created you can add it in e2a email related list layout. Please note that it cannot be moved before the 'Subject' field. This is the default behavior of Salesforce that 'Subject' should be the first field of a related list. 

The actions created following the steps above would be limited to the Lead Object only. To create the Reply/Reply to All actions on the related list of any (Standard/Custom) Object, the above process can be repeated, the only change would be the API name of Lookup of e2a Emails to that (Standard Custom) Object. 


Please contact us at for any questions.

Was this information helpful?
Quick survey: How do you rate Email-to-anything?
★★★★ - GOOD
☆☆☆☆ - RUBBISH