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
KJINCANKJINCAN 

Attach Rendered PDF to Chatter Feed

We have created a visualforce page that renders as a PDF.

 

Can anyone give me any recommendations (and even better sample code) on what we could do to have the rendered PDF auto attach to the Feed in Chatter of the same object it is generated from.

 

Any help would be awesome!  Thank you!

Best Answer chosen by Admin (Salesforce Developers) 
Scott_VSScott_VS

This excellent blog post from Jeff Douglas should get you going.

 

http://blog.jeffdouglas.com/2010/07/14/attach-a-pdf-to-a-record-in-salesforce/

All Answers

Scott_VSScott_VS

This excellent blog post from Jeff Douglas should get you going.

 

http://blog.jeffdouglas.com/2010/07/14/attach-a-pdf-to-a-record-in-salesforce/

This was selected as the best answer
MathaholicMathaholic

You can attach any document manually in chatter, but to progamattically assigning it...will have to  look in it..

How are you rendering your records as PDF...is it that you're doing from visual force page...??

 

KJINCANKJINCAN

Hi There,

 

Thanks for replying.  Yes, the PDF is generated from a visualforce page