|
PrmaryContactonAccount
Use Apex to maintain a single "primary" contact on every account record.
IntroductionSome organizations want to track a single primary contact for each account. While this can be accomplished with account contact roles, it is much easier to include the primary contact in reports and views if it is a field on the Account object itself. What We've BuiltEvan at NPower Seattle wrote Apex code that:
SchemaIn order to use the code, you need two custom fields on the Account object:
The following appexchange package can add these for you:
Triggers
Classes
|
Sign in to add a comment