Skip to content Skip to main navigation Skip to footer

Generate documents from a custom button placed on an VisualForce page

Example Case:
I want to know if documents could still be generated from a custom button placed on an VisualForce page.

App Expert Reply:
Yes, this would work, under condition that data displayed on the VisualForce page (and most likely used to in document) is saved in database. In general, it does not matter from where document generation gets executed (standard record page, VisualForce page or somewhere else) – it will get record id, document action id and other parameters and it will generate based on those parameters.