Notes
Upsert combines insert and updates into a single call. Upsert uses an indexed custom field or external ID to determine whether to create a new record or update an existing record. If the external ID is not matched, then a new record is created Existing record is updated If the external ID is matched once. If the external ID matched multiple times, then an error is thrown.