Send list of opportunities with opportunity-specific info on each to sales owner
Hi all,
I have a situation where I am sending emails to opportunities based on specific conditions, and then I need to notify the sales owner of the opportunity that the email has been sent with the opportunity-specific information. I've combed the forums and cobbled together something that finally sends, but does not print anything, even when it's replaced with a hardcoded sales owner email address that should deliver a result. The email of the sales owner is within the opportunity object, with two possible places of occuring.
This would be the email content of the notification email sent.
## Filter List
#set( $specificList = [] )
#foreach( $Opp in $OpportunityList )
#if( !$OpportunityList.Trigger.isEmpty() && $OpportunityList.PossibleSalesOwnerEmailOne == $lead.SalesOwnerEmailOne || !$OpportunityList.PossibleSalesOwnerEmailTwo == $lead.SalesOwnerEmailTwo )
#set( $void = $specificList.add($Opp) )
#end
#end
## Display List of Specific Items
#foreach( $Opp in $specificList )
Field1: ${OpportunityList.Field1}
Field2: ${OpportunityList.Field2}
Field3: ${OpportunityList.Field3}
</br>
#end