+ Start a Discussion
Siva SakthiSiva Sakthi 

how to add the object record as pdf into custom library specific folder

Hi All,

   Is there a way I can create the new folder in my library to store records as pdf in a custom object I've created after approval ( Approval Proess = Approved) usering apex controller or trigger ? Thanks for any help

Thanks
Siva
ShirishaShirisha (Salesforce Developers) 
Hi Siva,

Greetings!

Can you please try the sample code given in the below document and make changes to the records that you wanted to put in the PDF.

https://developer.salesforce.com/forums/?id=906F0000000B3qbIAC

https://salesforce.stackexchange.com/questions/237844/how-to-upload-a-file-to-a-specific-library-folder-using-apex

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri