Question
Email Script for Opportunity List
We're trying to use Email Scripts for the first time and are running into some difficulties. We're trying to use this for an shipping info request email, which would run as a batch every week day for opportunities closed that day. We want a list of the Closed-Won opportunities for that customer on that day to show up in the email. So far, my code looks like this:
${OpportunityList.get(0).CloseDate} ${OpportunityList.get(0).oOpportunityFSID}
I know that isn't enough for my specific parameters, but I expected a list of all closed opps to show up. However, it is only pulling the first opp from the Opportunity tab, even though the lead I'm using for the sample email has 7 opps (6 Closed-Won), many of which are more recent than the one that's showing up in the email.
What would my code need to look like to make this campaign possible?
${OpportunityList.get(0).CloseDate} ${OpportunityList.get(0).oOpportunityFSID}
I know that isn't enough for my specific parameters, but I expected a list of all closed opps to show up. However, it is only pulling the first opp from the Opportunity tab, even though the lead I'm using for the sample email has 7 opps (6 Closed-Won), many of which are more recent than the one that's showing up in the email.
What would my code need to look like to make this campaign possible?