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.