Skip to content

Import Type

What is the difference between insert, update and upsert?

In Salesforce, insert creates new records, update changes existing records, and upsert updates a record when it finds a match and creates a new one when it doesn't. In Impowr you choose one of these three import types for each mapping, and update and upsert use Matching Conditions to find the existing record.

  • Insert – Only create new records in your Salesforce Org.
  • Update – Only update existing records in your Salesforce Org. This is only possible where a single match to an existing Salesforce record is achieved.
  • Upsert – Where a match can be found (see Update above) perform an update, if no match then create a new record.

Now that you understand the difference between the three import types, it’s time to select the appropriate one for your import.

Step 1: Choosing the Import Type

  • Select Insert, Update or Upsert under Import Type.
  • If you have selected Insert, skip the rest of this article and move on to field mapping.
  • If you have chosen Update or Upsert, continue to Step 2: Matching Conditions.

Insert, Update and Upsert import types, with Insert selected and no matching conditions required.

Step 2: Matching Conditions

For Update and Upsert, Impowr introduces Matching Conditions to define criteria to find existing records in your Org.

  • Under File Column, choose a column header from the template file that contains the data you want to use for matching.
  • Under Salesforce Field, choose the field that contains the data you want to match with.
  • To add more matching conditions, select Add Row and repeat the two steps above for each added row.

Note

The matching conditions query builder will create an AND query to find existing records. It must result in finding a single record for a successful update to occur.

Update selected with lastName matched to Last Name and mobileNumber matched to Mobile Phone.

Step 3: Handling the Field Mapping

Select Next to progress to the Field Mapping stage.