4

I would like to have a button on an opportunity page that generates and saves a pdf as an attachment object and then opens the /_ui/core/email/author/EmailAuthor page with the attachment already attached.

I've found several good articles on saving the pdf as an attachment, such as this one from Jeff Douglas, but even though I've googled around, I haven't been able to find a parameter of the EmailAuthor page that I can assign the attachment id to.

I'm hoping I can avoid writing a visualforce page for this and would be grateful for any help.

Thanks

1
  • that article mentioned to create the attachment but how can we get the document id. How to get the doc_id=01590000000aWn9 ? Commented Jul 17, 2014 at 8:47

1 Answer 1

4

You can do this with a Document instead of Attachment.

You can pass Document ID in "doc_id" parameter in the URL like this:

/_ui/core/email/author/EmailAuthor?doc_id=01590000000aWn9
1
  • How to get the doc_id=01590000000aWn9 ? Commented Jul 17, 2014 at 8:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .