Guest User

Untitled

a guest
Oct 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. File = [select id, ContentDocumentId,title,pathOnClient,versionData,FileType from ContentVersion
  2. WHERE
  3. title like 'Invoice%'and
  4. //pathOnClient = :recordId and
  5. IsLatest = true
  6. ORDER BY lastmodifieddate desc
  7. limit 1];
  8.  
  9. <messaging:emailTemplate subject="Here is your invoice" recipientType="Contact" relatedToType="Opportunity" >
  10.  
  11. <messaging:attachment renderAs="pdf" filename="{!relatedTo.InvoiceNumber__c +'.pdf'}">
  12. <c:LatestInvoice />
  13. </messaging:attachment>
  14.  
  15. "core.filemanager.FileBlobValue@787ddc4c"
  16.  
  17. JVBERi0xLjcNJcjIyMjIyMgNMSAwIG9iago8PC9WZXJzaW9uLzEuNy9OYW1lcyA4IDAgUi9PdXRsaW5l
Add Comment
Please, Sign In to add comment