4

I recently have a client that wants the Email Quote functionality. However, in order to use that functionality, I need to create a Quote PDF.

I know I can create my own PDF, generate an attachment, then send it out as an e-mail. However, I would like to at least try using Salesforce's Quote PDF functionality to maintain consistency and above all else, having me write two templates.

TL;DR
Is it possible to programmatically use Salesforce's Quote PDF functionality? If not, is there a way to at least generate a PDF that will be in the Quote PDF related list?

2

You can either create an addition custom button for another custom PDF quote template as you've suggested or a custom button code to attach the existing template to an email. See Apex & VF Code of Send Quote as E-Mail for more.

2
  • I did find a hack to create the Quote PDF from the standard template. This is a relief, since I don't have to go custom (for the template at least) anymore. You can see the solution here: salesforce.stackexchange.com/questions/68243/… Mar 5 '15 at 5:01
  • I should probably have mentioned that there's an unmanaged package available from the App Exchange called Simple Quotes and Invoices that provides all of what you need to do what was in the the post you just linked to. You simply need to adjust the templates to suit your requirements and can of course modify the controller as well for custom quote requirements. As that didn't seem relevant to you question, I didn't mention it.
    – crmprogdev
    Mar 5 '15 at 5:38
0

I found related answer here..helped me... Quote PDF, send in email, save in salesforce

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.