Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
UpsertResult Class
Namespace
Usage
An upsert operation on external object records generates an array of objects of type DataSource.UpsertResult. Its methods create result records that indicate whether the upsert operation succeeded or failed.
UpsertResult Properties
The following are properties for UpsertResult.
UpsertResult Methods
The following are methods for UpsertResult.
equals(obj)
Signature
public Boolean equals(Object obj)
Parameters
-
obj:
Type:
Object External object whose key is to be validated.
Return Value
Type: Boolean
failure(externalId, errorMessage)
Signature
public static DataSource.UpsertResult failure(String externalId, String errorMessage)
Parameters
hashCode()
Signature
public Integer hashCode()
Return Value
Type: Integer
success(externalId)
Signature
public static DataSource.UpsertResult success(String externalId)
Parameters
-
externalId:
Type: String
The unique identifier of the external object record to upsert.
Return Value
Type: DataSource.UpsertResult
Status result of the upsert operation for the external object record with the given external ID.