+ Start a Discussion
Isa Delgado 9Isa Delgado 9 

Button create pdf

Hi, I need create in other object a button like create pdf in Quotes, So I have 2 templates and when click the button, show me a lookup to choose what template a want create. And choose if I want save or save and send.

I tried to do with visualforce page, but I don't know how I can associate each lookup field to each visualforce page.

vmanumachu1.393650924860069E12vmanumachu1.393650924860069E12
Are these templates Email templates? If yes, do you want to send the PDF as an attachment in the Email Template selected?
Isa Delgado 9Isa Delgado 9
Yes they are Email custom Email templates. Yes, but like create PDF, first I want choose the template and then I can save or save and send.

So I have an object named Stock and according  the brand I choose in the picklist, I have to choose the Email template that have the brand Logo in header
Isa Delgado 9Isa Delgado 9

Somebody can help me with this issue. I see many forums but can't find the answer. 

I need a  custom button to choose a template. I can create with that example

" /_ui/core/email/author/EmailAuthor?rtype=003&p3_lkid={!Lead.Id}&retURL=%2F{!Lead.Id}&p5={!$User.Email}&p24="{!Lead.Email}&template_id=00XE0000000lMMg "

But this send a email, and can't insert the record data in template. 

Thanks