function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ashish jadhav 9ashish jadhav 9 

can we update ID in upsert? if yes then how many times? if no, then why?

Carlos Campillo GallegoCarlos Campillo Gallego
Hi Ashish,

If you are referring to the main record ID of anything within Salesforce, the answer is no, you can't change that ID, if you are talking about a custom field that you have marked it as external ID, yes, you can change that value as many times as you wish.

This "main" record ID I mention, is the ID you can see at the end of the URL of any record in your org.

Regards.