You need to sign in to do that
Don't have an account?

Variables in Visualforce Email Template controllers?
I'd like to run a SOQL query based on a list of IDs somehow passed in to a VF email template controller. Something like this:
Opportunity Opps=[select Name from Opportunity where id in :IDList];
Problem is, I can't figure out how to pass in that previously populated IDList. The end goal here is to allow the customer to select a bunch of Opportunities about which to send some emails, while at the same time giving him the ability to modify the template to his liking.
Any input?
public static void Opps(ID oppID){ List<ID> IDList = new List<ID>(); IDList.add(oppID); Opportunity Opps=[select Name from Opportunity where id in :IDList]; }