Is there any way, which we can insert our own values in the record Id field in a salesforce Object?
I know, when we insert any new record, the record Id is automatically assigned by the system.
But, can we Insert our own defined values in the Record Id column in a salesforce Object by passing from the external method caller such as anonymous execute window? Just like normally we insert other fields? If so how? Some one please explain..
Using the upsert operation, you can either insert or update an existing record in one call. To determine whether a record already exists, the upsert statement or Database method uses the record’s ID as the key to match records, a custom external ID field, or a standard field with the idLookup attribute set to true.
– Dan Beer May 25 '21 at 08:29