Please enable JavaScript
Upsert uses the sObject record's primary key (the ID), an idLookup field, or an external ID field to determine whether it should create a new record or update an existing one. Blog Post: https://www.infallibletechie.com/2015/10/how-to-upsert-using-external-id-using.html