Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File = [select id, ContentDocumentId,title,pathOnClient,versionData,FileType from ContentVersion
- WHERE
- title like 'Invoice%'and
- //pathOnClient = :recordId and
- IsLatest = true
- ORDER BY lastmodifieddate desc
- limit 1];
- <messaging:emailTemplate subject="Here is your invoice" recipientType="Contact" relatedToType="Opportunity" >
- <messaging:attachment renderAs="pdf" filename="{!relatedTo.InvoiceNumber__c +'.pdf'}">
- <c:LatestInvoice />
- </messaging:attachment>
- "core.filemanager.FileBlobValue@787ddc4c"
- JVBERi0xLjcNJcjIyMjIyMgNMSAwIG9iago8PC9WZXJzaW9uLzEuNy9OYW1lcyA4IDAgUi9PdXRsaW5l
Add Comment
Please, Sign In to add comment