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

  • that article mentioned to create the attachment but how can we get the document id. How to get the doc_id=01590000000aWn9 ? – SFDC LEARNER Jul 17 '14 at 8:47
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
  • How to get the doc_id=01590000000aWn9 ? – SFDC LEARNER Jul 17 '14 at 8:46

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.