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
onedayoneday 

upsert related question

I noticed that when calling Upsert operation, if I put a valid sObject Id in the Id field, and if the sObject withe external Id is existed, then it will update the sObject successfully. This give me a misconception that the sObject Id of this sObject has been updated. I looked up the document, and find no warning for this. So I wonder if Salesforce could modified the logic of this part, giving an error for this kind of situation?

Thanks