Right, that trigger will bring all those created in, regardless if they had an opportunity close. You also can't use the "opportunity was updated" filter because that will only affect the contact attached to the opportunity. So what you need to do is trigger for all contacts created but to also filter by a field on the account, this will then apply to all the account's contacts. When an opportunity closes, I would use an SFDC workflow to update a field on the account (ex. Account Status)
It will then look like this:
trigger: person is created (source: sfdc & sfdc type: contact)
filter: Account Status is "Customer"
2 of 2 people found this helpful
I'm not sure I'd use a trigger for this. Lead is Created will fire off every single time in the Eval Queue, slowing down processing.
Try a daily batch like
Lead Was Created in Past Day
DVC in Past 30 days: Account Status=Customer
Good point, Josh, a batch would be better in this situation.
This is great. Thank you both for the ideas.