Skip to content

Impowr blog

Customer story

Simplify importing Opportunity Products in Salesforce using Impowr

Importing Opportunity Products (OpportunityLineItem)

  • Identify the advantages of using Impowr to import Opportunity Products in Salesforce.
  • Create an object and field mapping in Impowr for Opportunity Products.
  • Add and configure the File Import component to an Opportunity Record Page.
  • Import Opportunity Products to an Opportunity Record.

Why use Impowr to import Opportunity Products?

The File Import component, part of Impowr, can drastically optimise importing Opportunity Products to Opportunities within your Salesforce organisation by allowing you (and your users) to upload the file on an Opportunity record page itself. Impowr then does all the hard work for you by inserting all the Products from your file directly to the viewed Opportunity – there’s no need to map fields every time, or source record IDs. This not only saves you time, it also prevents user error.

Like the sound of the File Import component? Get in contact with us and we’d love to show you around Impowr. If you’ve already got Impowr, keep reading!


Create an object and field mapping

  • Opportunity – the Opportunity record that the product will be associated with. This will be added as a Constant Value in the mapping stage.
  • Product – the Product that will be added. This can be an ID, or Product Name if they are unique in your org.
  • Quantity – the quantity of the Product being added to the Opportunity.
  • Sales Price – the price of the Product, per item.

Create a template file

  1. Create a new spreadsheet file: Populate row 1 with the mandatory fields: Product, Quantity, and Sales Price.
    • Note: Because the Opportunity ID will be added as a Constant Value during the mapping stage, it does not need to be included in your import file.
  2. In the first cell underneath Product, add either the Product Name or ID. This product must be Active and have a Price Book associated with it.
  3. In the first cell underneath Quantity, enter a value.
  4. In the first cell underneath Sales Price, enter a value.
  5. Save the file to your computer.

Generate a mapping

Now that we have a template file, we need to configure the file within Impowr and generate a mapping.

  1. From the App Launcher, find and select Impowr.
  2. Upload the created template file by using either the drag & drop functionality or click to upload.
  3. Once the file has uploaded, select the Import to Salesforce button.
  4. In the Object Selection master picklist, choose Opportunity Product (OpportunityLineItem).
  5. Click Continue.
  6. Select Insert and Continue to the mapping page.
  1. For Product, map Product ID (ProductId2) | Product Name (Name) | OpportunityLineItem.
  2. For Quantity, map Quantity (Quantity) | OpportunityLineItem.
  3. For Sales Price, map Sales Price (UnitPrice) | OpportunityLineItem.
  4. For Opportunity:
    • Click Add Constant.
    • Add {!Record.Id} as the Constant Value.
    • Map Opportunity ID (OpportunityId) | Opportunity ID (Id) | OpportunityLineItem.
  5. Now that the mapping is correctly configured, use the Save Mapping button and name the mapping.

Add the File Import component to your page

Testing out the File Import component

Got questions? Chat to us!