+ Start a Discussion
BondicloudBondicloud 

can any one Explain _ui/core/email/author/EmailAuthor?

Hi All,

 

 pls explain bellow statement how to build this ?

 

location.replace('_ui/core/email/author/EmailAuthor?p2_lkid={!Commercial_Agreement__c.My_Cutom_To_EmailField__c}&rtype=003&p3_lkid={!Commercial_Agreement__c.Id}
&rtype=003&p24={!Commercial_Agreement__c.My_Custom_AdditionalToEmail__c}&retURL=/{!Commercial_Agreement__c.Id}&template_id=00XA0000000Dv41')

 

and what are the p2_lkid, rtype,  p3_lkid and where we can see this variables and wher these values will send (where it will check)?

Best Answer chosen by Admin (Salesforce Developers) 
gautam_singhgautam_singh

Hi,

 

The aforementioned fileds are standard fields provided from Salesforce side. These arent customizable but you can specify values for this as per your need and requirements. You can give merge fields values over there and that may help.

 

Important :

Click on the Star Icon aside if this post provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

Thank You

All Answers

gautam_singhgautam_singh

Hi,


Here is what could help you for a better understanding.The Parameters used when sending Email using Send An Email button , Refer this for more details

p2_lkid = it is "Email TO" Field Code , associated only with Contact ID of Contact Standard Object, populares the Contact in To Field of Email.
rtype = record type 001 means Account and so on
p3_lkid = whatId ( hidden lookup field) it is must if the merge fields are there in template
p24 = additional email to be added as addional
retURL = returning URL
p5 = stops adding more BCC
p26 = to change the domain from which you are sending
template_id - Email Template Id, It can have merge fields.


Important :

Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

Thank You

BondicloudBondicloud

Thank You, singh.

 

p2_lkid ,rtype ,p3_lkid ... all r standard fields are is it customizable fields . where we can see this fields .

 

 

 

 

 

 

Thanks ,

Bondi

 

gautam_singhgautam_singh

Hi,

 

The aforementioned fileds are standard fields provided from Salesforce side. These arent customizable but you can specify values for this as per your need and requirements. You can give merge fields values over there and that may help.

 

Important :

Click on the Star Icon aside if this post provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

Thank You

This was selected as the best answer
RobAlexanderRobAlexander
If sending an email to a Person Account, note the following:
  • p2_lkid should be set to the Account ID
  • rtype should be set to 003 (which is used for contacts)

If sending an email to a Lead, note the following:
  • p2_lkid should be set to the Lead ID
  • rtype should be set to 00Q
Rafael Sanchez 13Rafael Sanchez 13
RobAlexander, vey uselful information, thanks.
Archana SudhirArchana Sudhir
How do we actually send the email after the fields are populated, without having to click the 'send' button. Adding '&save-0' in the populated url is throwing 'session is expired'. This is for contacts,
/EmailAuthor?p2_lkid=003xx000004UAvn&rtype=003&p6=TestEmail