To add Opportunity Team Members to an Opportunity using the Data Loader:
1. Prepare a file with the following columns:
OpportunityId: The Record Id of the Opportunity to which a team member is being added
UserId: The Id of the user being added to the Opportunity Team
TeamMemberRole: The Opportunity Team Role for this user on this Opportunity. To find the list of valid Team Roles, go to Setup | Customize | Opportunity | Opportunity Teams | Team Roles
OpportunityAccessLevel: The Opportunity access level for the team member (or UserId). Valid values are "Read" or "Edit" and please note: "Read" or "Edit" in this field is case sensitive
2. Once the file has been prepared, open Data Loader and select the Insert operation on the Opportunity Share (OpportunityShare) object to set the appropriate OpportunityAccessLevel for the Opportunity Team Member users. The Opportunity Share object should be available by selecting the "Show all Salesforce objects" option in the Data Loader click Browse... and select your file | Open | Next > | Ok
- Select the Create or Edit a Map button and choose to Auto-match Fields to Columns. Verify that the OpportunityAccessLevel and OpportunityId fields mapped automatically and manually map the UserId column to the UserOrGroupId field in Salesforce.
- Select the directory where the success and error files should be saved, then click "Finish".
3. Using the same file now perform a secondary Insert operation to the Opportunity Team Member (OpportunityTeamMember) object which should be available by selecting the "Show all Salesforce objects" option in the Data Loader click Browse... and select your file | Open | Next > | Ok
- Select the Create or Edit a Map button and choose to Auto-Match Fields to Columns. Verify that the OpportunityId, UserId, and TeamMemberRole fields are properly mapped.
- Select the directory where the success and error files should be saved, then click "Finish".
Note: The Opportunity Share records must be inserted before the Opportunity Team Member records. This ensures that the existing share records are properly linked to the newly created team members. If share records are inserted after team members, the team member access levels in the user interface may not properly reflect the sharing record's access levels.
Once the share and then team member records are inserted in the correct order they should be properly linked to one another and thus allow subsequent updates to the share records to be properly reflected in the related team member's access level via the UI.
To remove Opportunity Team Members from an Opportunity using the Data Loader:
1. Run an Export operation via the Data Loader against the Opportunity Team Member (OpportunityTeamMember) object. Set filter conditions of your choosing to selectively export the desired Opportunity Team Member records and ensure that you have stored a backup of the existing Opportunity Team member records.
2. When you are satisfied with the contents of your file perform a Delete operation via the Data Loader mapping the Opportunity Team Member's Id column.
Note: Deleting an OpportunityTeamMember record also removes their OpportunityShare record and the team member record is not placed in the recycle bin.
See Also:
Specify access level when you import Account or Opportunity team members
Add or remove Account Teams with Data Loader
Support Video:
How to Download and Install Data Loader | Salesforce
000383667

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.