Data Loader can be used to import Opportunity Product (or OpportunityLineItem) records.
Scenario:
For example, a sales ops admin needs to bulk-load 500 Opportunity Products into existing Opportunities after migrating from a legacy CRM. The CSV must include OpportunityID, PricebookEntryID, and UnitPrice columns.
The video above (runtime ~5 minutes) walks through preparing the CSV file and running the Data Loader insert for OpportunityLineItem records, including how to retrieve PricebookEntry IDs.
To get started, prepare a CSV template with the following columns:
To get the values for PricebookEntryID and Product2ID, export them from "Price Book Entry (PricebookEntry)" object using the Data Loader, and select the fields ID, Product2ID, and any other fields that will help to identify the correct Product. The ID fields are equivalent to the PricebookEntryID .
If you have any additional information for the import, you can add new columns to the .csv file to reflect the fields and data.
Once file is saved as a .csv file, perform an import using Data Loader:
000382941

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.