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
Daniel MuirDaniel Muir 

Automatically populate an email alert template with an attachment from the notes and attachments section of a custom object

I would like to find a way in which an email alert that is to be sent following an approval process can automatically be populated by a notepad attachment in the objects Notes and attachments section.   
HARSHIL U PARIKHHARSHIL U PARIKH
Can you be little more spefic Daniel?
Are you trying to send an approval process email address only when there is an attachment exists on the object?
Daniel MuirDaniel Muir
Hi Govind. 
We are sending one at the end of an approval process. 
Problem is we cant automaticaly attach attachments from the objects "Notes and Attachments" section, to the email(s) that are sent.
I've been through a number of forums which seem to suggest this is possible, though this needs clarity. 
HARSHIL U PARIKHHARSHIL U PARIKH
This question answers might help you out: 

https://developer.salesforce.com/forums/?id=906F00000008yN4IAI

https://success.salesforce.com/answers?id=90630000000h3KAAAY

https://success.salesforce.com/answers?id=90630000000gkniAAA

https://success.salesforce.com/answers?id=90630000000CqzdAAC


https://developer.salesforce.com/forums/ForumsMain?id=9060G000000BdXLQA0#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Apex_Code_Development&criteria=OPENQUESTIONS&id=9060G000000Be1BQAS