This is the piece of apex code which we can use to find out the email template has the attachment or not.
EmailTemplate etemp = [select id from EmailTemplate where developerName = 'SupportCaseResponse' limit 1];
Attachment[] a = [select id,ContentType, Body From Attachment where parentId = :e.Id];
system.debug('attachement'+a);
If this solution helps, Please mark it as best answer.
This is the piece of apex code which we can use to find out the email template has the attachment or not.
If this solution helps, Please mark it as best answer.
Thanks,
You can click on 'Search Document'link in the attachment pop-up and attach a file from the Documents repository of Salesforce.
you can get references from this link:
https://developer.salesforce.com/forums/?id=906F00000008yqDIAQ
If you find your Solution then mark this as the best answer.
Thank you!
Regards,
Suraj Tripathi