I have one package for multiple templates that can be generated from the Opportunity object in Salesforce. I made each template optional and I'm planning to create separate buttons or links for each template where parameters are used to set the specific template as the one to use. What I cannot figure out is the best way to let the button/link that is choosing the template to also drive the naming convention for the file. Is there a parameter that can override the filename? Component Groups have been suggested, but unless I can let the selected template drive the selection of the correct Component, I'm not sure how to accomplish this.