How to save a rendered PDF file as Attachment?

Problem : How to save a rendered PDF file as Attachment ? 

Solution: 

Use getContent() method of PageReference. Sample code can be found at 
http://blog.jeffdouglas.com/2010/07/14/attach-a-pdf-to-a-record-in-salesforce/

Comments

Popular posts from this blog

How to prepare your LOB app for Intune?

Information Architecture - Setup your term store to scale

Generate token signing .CER from ADFS Federation Metadata XML