The ability to generate and attach a .pdf document to an e-mail generated by an Visualforce Page e-mail template is fairly straightforward using the <messaging:attachment renderAs="pdf"> capability. However, this method generates a .pdf file from whatever is contained between the <messaging:attachment> and </messaging:attachment> tags.
My problem is that I already have a .pdf document stored in a Documents folder in SFDC and I want to automatically attach that document to an e-mail generated by a Visualforce Page template without the user having to go through the the document selection and attachment process. I don't want to have to re-generate the document, just attach it.
I'm the Product Manager for packaging here at salesforce.com. We're currently working on a feature that would allow fields and objects to be removed from managed packages. This is a popular request and something we're hoping to deliver very soon, but we need your help. Please respond to this post with any thoughts around this topic. I've included a few questions to get the conversation going:
- Why do you want to remove these? No longer used? Customers didn't like them? Replace with a new field?
- When you deprecate a field/object, what should happen for existing customers? New customers?
- Would you have to remove all usage of a field/object in your app before you can deprecate it? What happens if you've included the field in another formula field, etc?