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
Sudeep SinghSudeep Singh 

Need to attach the latest attachment in the mail when we are sending email

Hi,
I added one documents in Notes and Attachment in Account object. In the activity tab in email section when I click on send then it should send email attaching the latest document in Note & Attachment.

How we can acheive this ?
User-added image
 
SubratSubrat (Salesforce Developers) 
Hello Sudeep ,

You can create a after insert Trigger for your requirement .
I am attaching a link for a Sample code for this 
--> https://developer.salesforce.com/forums/?id=9060G000000MUguQAG

Requesting you to go through with the above example and let me know further .

If it helps please mark this as best Answer.

Thank you.
Sudeep SinghSudeep Singh
No this solution didn't helped me

Thanks