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
rmillrmill 

Attachments to custom Email Templates

Hi,

 

I was wondering if there is a way to reference the most recent attachment in Opportunities and attach it to a custom email template.

 

location.replace('/email/author/emailauthor.jsp?retURL=/{!Opportunity.Id}&p3_lkid={!Opportunity.Id}&&p2_lkid={!Opportunity.Account_HolderId__c}&template_id=00XZ0000000Dgzm&new_template=true');

 

That is the code for the button the user will click after they have created a contract which is than re attached to the Opportunity.

 

Thanks in advance.