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

Updating SourceData/ Data Source of the Pivot Table

Salesforce.com migration tool - Deploying Weblink and migrating files with special characters

Information Architecture - Setup your term store to scale