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
Animesh DattaAnimesh Datta 

Populate To field in EmailAuthor page in custom object

Hi,

I am trying to populate TO field in Email author as Account Name in a Custom Object. But To field is populating as blank. Below is the code sample. Kindly Help!!!!
/***Account_1_Id__c(getting account id) is a formula field on Offer__c and Account is lookup in Offer__c*****/


('/_ui/core/email/author/EmailAuthor?/p2_lkid={!Offer__c.Account_1_Id__c}&rtype=003&retURL=%2F{!Offer__c.Id}&p3_lkid={!Offer__c.Id}');

Regards,
Animesh
Shailesh DeshpandeShailesh Deshpande
You cannot do this as the TO can only contain Contacts/Leads.
Animesh DattaAnimesh Datta
Hi,
it worked for person account. however, as per standard i am using person contactid now. But here problem was with "/" before p2_lkid. After removing the same it starts working.