You need to sign in to do that
Don't have an account?
Samrat Chakraborty
trigger to post a pdf generated by vf page onto chatter
I want to post a file as chatter feed when the user clicks "generate PDF" from a visual force page.
I dont want the file to be saved as "Notes and Attachments". Whatever is the pdf generated on the button click the user should be able to share the same in Chatter.
I dont want the file to be saved as "Notes and Attachments". Whatever is the pdf generated on the button click the user should be able to share the same in Chatter.
Here is the similar question that might help you
https://developer.salesforce.com/forums/ForumsMain?id=906F000000092VuIAI
Thanks for the reply, as per the example first the generated pdf is to be saved as Attachment and then inserted in feed. I dont want it to be added in Notes and Attachment, but I want it to be added directly to the files tab in the chatter
Otherwise you can use the Blob type to refer in your VF Page and use that as post.ContentData, hope this helps.
If you still cannot figure it out, please post your VF page and I will try to create a controller for it. Thank you
First of all thanks for ur reply. I was working on the same approach. Will continue to do that and update if there is any breakthrough. :)
Meanwhile I have attached My VF page to be rendered as pdf as requested.
Thanks a lot
When you click on "Generate PDF" button on a Visualforce page, are you calling an action function in your other Controller to redirect to the PDF page?
In that action Button function, you might need to do this