Sub topic 9
Contact Roles and Opportunity Teams
This chapter assumes you know how Accounts, Contacts, and Opportunities relate, and that you can edit page layouts and related lists. It covers two ways to record who is involved in a deal: contact roles for people at the customer, and opportunity teams for people on your side.
Why a deal needs more than one person
An opportunity belongs to one Account, but a real deal involves several people. The customer side may include a budget holder, a technical evaluator, and a user who will champion the product. Your side may include the rep, a sales engineer, and a manager. Salesforce models these two groups separately.
| Feature | Records who | Linked records | Typical use |
|---|---|---|---|
| Contact roles | People at the customer | Contact | Know who decides, who influences, who evaluates |
| Opportunity teams | Salesforce users | User | Share credit and access across your own colleagues |
Contact roles
A contact role links a Contact to an Opportunity and labels the part that person plays. It is stored in the OpportunityContactRole object. Each record holds the contact, the opportunity, a role, and an optional Primary flag.
Roles come from the Role picklist, with values such as Decision Maker, Economic Buyer, Evaluator, and Influencer. You can edit these values under Setup, in the Object Manager, on the Opportunity Contact Role object.
Adding contact roles
- Open an opportunity record.
- Find the Contact Roles related list. If it is missing, add it to the page layout.
- Click Add Contact Roles and choose one or more contacts.
- Pick a role for each contact.
- Mark one contact as Primary if appropriate.
Only one contact can be Primary per opportunity. Reports and some integrations use that flag to find the main contact.
Common errors
- Contact does not appear in the search. The search shows contacts on the opportunity's account by default. You may need to search wider, and your sharing access to the contact still applies.
- No roles recorded. Teams often skip this step. Consider a validation rule or a Path guidance note at later stages to prompt for it.
- Role picklist too long. Long lists lead to inconsistent choices. Keep it to roles your team actually uses.
When you convert a lead, the contact created from the lead can be added to the new opportunity as a contact role. The previous chapter covered that behavior.
Opportunity teams
An opportunity team is a set of users who work on a deal alongside the owner. Each member has a team role, such as Sales Engineer or Executive Sponsor, and an access level to the record: Read Only, Read/Write, or Private where applicable. Team membership is stored in the OpportunityTeamMember object.
Team access can only add to what a user already has. It cannot reduce access that the user gets through the role hierarchy or an organization-wide default.
Turning the feature on
Opportunity Teams are not always enabled. In Setup, search for Opportunity Team Settings and select Enable Team Selling. After that, add the Opportunity Team related list to the page layout. Users can also build a default team in their personal settings, and Salesforce can add those members automatically to opportunities they create.
Putting the two together
The diagram shows how the objects connect.
You can query both objects with SOQL. This example lists each contact role on one opportunity, with the contact's name:
SELECT Contact.Name, Role, IsPrimary
FROM OpportunityContactRole
WHERE OpportunityId = '006XXXXXXXXXXXXXXX'Replace the placeholder with a real record ID.
Exercise
A sales engineer needs to edit an opportunity owned by a rep in another region. The engineer has no access to it through the role hierarchy. Should you add the engineer as a contact role or as an opportunity team member, and why?
Show answer
Add the engineer as an opportunity team member with Read/Write access. Contact roles describe Contacts, which are people at the customer, and they grant no access. Team membership links a Salesforce user and can give that user access to the record.