Supposing I have a VF page that generates a PDF quote - how can I arrange to automatically open that document for this user to review, without having any further user interaction? Currently, the user has to click a link to open the PDF, which is (obviously) one click too many ...



  • Are you saying that the PDF is currently generated by a Detail Page Link on the Quote Object? If no, how is the link created and where does it reside? – Ian Iepson Mar 20 '15 at 23:55
  • No, I'm saying that I have a VF page that generates a PDF quote. Once the quote is generated, it is saved as an attachment. I want to display that attachment automatically without user intervention. – user735 Mar 21 '15 at 0:01

When a user views an attachment, the url is something like:


You can try redirecting to this url using PageReference when the Quote has been created successfully.

Also, a work-around could be to redirect to the VF page that you are using to generate the PDF, with the necessary parameters.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy