0

How to access ContentDocument to be used as attachment in visualforce email template

<messaging:attachment filename="{!relatedTo.ContentDocument.Title}" renderAs="{!relatedTo.ContentDocument.FileType}">
</messaging:attachment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.