Email Message
template_id = id of email template you want to pre-populate
email_type=visualforce (if the template that you’re using is a VF email template)
new_template=1 = required if you’re using a VF email template that contains an attachment
p2_lkid = id of the record for the To address (a Contact, Lead, or User Id)
rttype = the id prefix for the type of the To address (e.g., if p2_lkid refers to a Contact, use rttype=003)
p3_lkid = id of the record for the Related To (i.e., What) record (e.g., an Account or Opportunity)
p4 = CC address
p5 = BCC address
p6 = Email subject
p7 = Email body
p24 = Additional To
p26 = From address
doc_id = the id of a Document or QuoteDocument to become an email attachment
retURL = URL to return to after the email is sent
cancelURL = URL to return to if the user clicks Cancel
Events
| Field Label |
Field Type |
Field Name |
| Assigned To |
ID |
evt1_lkid |
| Assigned To |
Text |
evt1_lkold |
| Subject |
Text |
evt5 |
| Who |
Picklist |
evt2_mlktp |
| Who |
ID |
evt2_lkid |
| Who |
Text |
evt2 |
| What |
Picklist |
evt3_mlktp |
| What |
ID |
evt3_lkid |
| What |
Text |
evt3 |
| Location |
Text |
evt12 |
| Date |
Date |
evt4 |
| Time |
Time |
evt13 |
| Type |
Text |
evt10 |
| Description |
Text |
evt6 |
Tasks
| Field Label |
Field Type |
Field Name |
| Assigned To |
ID |
tsk1_lkid |
| Assigned To |
Text |
tsk1 |
| Subject |
Text |
tsk5 |
| Due Date |
Text |
tsk4 |
| Status |
Text |
tsk4 |
| Who |
Picklist |
tsk2_mlktp |
| Who |
ID |
tsk2_lkid |
| Who |
Text |
tsk2 |
| What |
Picklist |
tsk3_mlktp |
| What |
ID |
tsk3_lkid |
| What |
Text |
tsk3 |
| Comments |
Text |
tsk6 |
Leads
| Field Label |
Field Type |
Field Name |
| First Name |
Text |
name_firstlea2 |
| Last Name |
Text |
name_lastlea2 |
| Company |
Text |
lea3 |
| Title |
Text |
lea4 |
| Lead Source |
Text |
lea5 |
| Industry |
Text |
lea6 |
| Annual Revenue |
Text |
lea7 |
| Campaign ID |
ID |
lea20_lkid |
| Campaign ID |
Text |
lea20_lkold |
| Description |
Text |
lea17 |
| Phone |
Text |
lea8 |
| Mobile |
Text |
lea9 |
| Fax |
Text |
lea10 |
| Email |
Text |
lea11 |
| Website |
Text |
lea12 |
| Lead Status |
Text |
lea13 |
| Rating |
Text |
lea14 |
| Employees |
Text |
lea15 |
| Email Opt Out |
Boolean |
lea22 |
| Street |
Text |
lea16street |
| City |
Text |
lea16city |
| State/Province |
Text |
lea16state |
| Zip/Postal Code |
Text |
lea16zip |
| Country |
Text |
lea16country |
| Use Assignment Rule |
Boolean |
lea21 |
Lead Conversion
| Field Label |
Field Type |
Field Name |
| Do not create a new opportunity upon conversion |
Number |
nooptt |
| Send email to the Owner |
Number |
sem |
| Converted Status |
Text |
cstatus |
| Priority |
Text |
tsk13_fu |
| Status |
Text |
tsk12_fu |
| Send Email Notification |
Number |
email_followup |
Accounts
| Field Label |
Field Type |
Field Name |
| Account Name |
Text |
acc2 |
| Account Site |
Text |
acc23 |
| Account Number |
Text |
acc5 |
| Type |
Text |
acc6 |
| Industry |
Text |
acc7 |
| Annual Revenue |
Text |
acc8 |
| Rating |
Text |
acc9 |
| Phone |
Text |
acc10 |
| Fax |
Text |
acc11 |
| Website |
Text |
acc12 |
| Ticker Symbol |
Text |
acc13 |
| Ownership |
Text |
acc14 |
| Employees |
Text |
acc15 |
| SIC Code |
Text |
acc16 |
| Billing Street |
Text |
acc17street |
| Billing City |
Text |
acc17city |
| Billing State/Province |
Text |
acc17state |
| Billing Zip/Postal Code |
Text |
acc17zip |
| Billing Country |
Text |
acc17country |
| Shipping Street |
Text |
acc18street |
| Shipping City |
Text |
acc18city |
| Shipping State/Province |
Text |
acc18state |
| Shipping Zip/Postal Code |
Text |
acc18zip |
| Shipping Country |
Text |
acc18country |
| Description |
Text |
acc20 |
Contacts
| Field Label |
Field Type |
Field Name |
| First Name |
Text |
name_firstcon2 |
| Last Name |
Text |
name_lastcon2 |
| Account |
ID |
con4_lkid |
| Account |
Text |
con4_lkold |
| Title |
Text |
con5 |
| Department |
Text |
con6 |
| Reports To |
ID |
con8_lkid |
| Reports To |
Text |
con8_lkold |
| Phone |
Text |
con10 |
| Home Phone |
Text |
con13 |
| Mobile |
Text |
con12 |
| Fax |
Text |
con11 |
| Email |
Text |
con15 |
| Email Opt Out |
Boolean |
con23 |
| Mailing Street |
Text |
con19street |
| Mailing City |
Text |
con19city |
| Mailing State/Province |
Text |
con19state |
| Mailing Zip/Postal Code |
Text |
con19zip |
| Mailing Country |
Text |
con19country |
| Other Street |
Text |
con18street |
| Other City |
Text |
con18city |
| Other State/Province |
Text |
con18state |
| Other Zip/Postal Code |
Text |
con18zip |
| Other Country |
Text |
con18country |
| Description |
Text |
con20 |
Opportunities
| Field Label |
Field Type |
Field Name |
| Name |
Text |
opp3 |
| Account |
ID |
opp4_lkid |
| Account |
Text |
opp4_lkold |
| Type |
Text |
opp5 |
| Lead Source |
Text |
opp6 |
| Forecast Category |
Text |
forecastcategory |
| Amount |
Text |
opp7 |
| Close Date |
Text |
opp9 |
| Next Step |
Text |
opp10 |
| Stage |
Text |
opp11 |
| Probability |
Text |
opp12 |
| Campaign Source |
ID |
opp17_lkid |
| Campaign Source |
Text |
opp17_lkold |
| Description |
ID |
opp14 |
Cases
| Field Label |
Field Type |
Field Name |
| Contact |
ID |
cas3_lkid |
| Contact |
Text |
cas3_lkold |
| Type |
Text |
cas5 |
| Case Reason |
Text |
cas6 |
| Status |
Text |
cas7 |
| Priority |
Text |
cas8 |
| Case Origin |
Text |
cas11 |
| Subject |
Text |
cas14 |
| Internal Comments |
Text |
cas15 |
| Assignment Rules |
Text |
cas21 |
| Send Notification |
Text |
cas22 |