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
mauricio.ramos@corpitalmauricio.ramos@corpital 

EmailAuthor link with attachment

Hello,

 

I am trying to reproduce the EmailAuthor functionality to send an attachment of a custom object from a button without having to recode the entire email features.  I added a button with some parameters and I am able to get all except the attachment itself.

 

I added a field to the custom object that is populated via integration when the server generates a PDF file and attaches it to the Sales Document (the custom object). I added the &doc_id= parameter with the Id from the field but I am not getting the attachment added to the email page. See code below:

 

 

"/_ui/core/email/author/EmailAuthor?p2_lkid="{!SCRB_SalesOrder__c.Selling_ContactId__c}"&rtype=003&p3_lkid="{!SCRB_SalesOrder__c.Id}&doc_id={!SCRB_SalesOrder__c.Active_PDF_Attachment_ID__c}

 

Where {!SCRB_SalesOrder__c.Active_PDF_Attachment_ID__c} represent the text field populated with the attachment ID. This is the file that should be attached to the email when the button is pressed in the Sales Document (custom object). What am I doing wrong that I cannot get this file attached to the email????

 

Thank you