function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vodnuravodnura 

Generating pdf report

Requirement is to create a pdf report on custom object and schedule them to a particular location. 
 Now we can use 'renderas' to generate a pdf but how to ftp it? can any one suggest an idea.

Appreciate all the help!!
Vinit_KumarVinit_Kumar
You can email the pdf file using Messaging.EmailFileAttachment Class of salesforce.Go through the below link to learn more and fopr sample code :-

https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_email_outbound_attachment.htm

http://www.salesforce.com/us/developer/docs/pages/Content/pages_email_sending_attachments.htm