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
AgilidiRPAgilidiRP 

Custom button to populate custom field on activity

I would like to send an email from an Opportunity using a custom button/URL. The button should complete a custom field on the activity/task for that email.  However, I can't seem to get the custom field to pre-populate on the activity (&00Nd0000008EQd5=test).  Any ideas?
Thanks in advance.
/_ui/core/email/author/EmailAuthor?rtype=003 
&p2_lkid={!Contact.Id} 
&p3_lkid={!Opportunity.Id} 
&retURL=%2F{!Opportunity.Id} 
&template_id=00Xd0000000k28f 
&00Nd0000008EQd5=test
SonamSonam (Salesforce Developers) 
Tried this out and seems like its not possible to add custom fields and values to task records created when using the send email button. The page layout also cannot be editted to add the custom fields on the UI.
AgilidiRPAgilidiRP
We ended up using a trigger.  Seems to work well.