DeleteResult Class
Namespace
Usage
A delete operation on external object records generates an array of objects of type DataSource.DeleteResult. Its methods create result records that indicate whether the delete operation succeeded or failed.
DeleteResult Properties
The following are properties for DeleteResult.
errorMessage
Signature
public String errorMessage {get; set;}
Property Value
Type: String
DeleteResult Methods
The following are methods for DeleteResult.
equals(obj)
Signature
public Boolean equals(Object obj)
Parameters
- obj
- Type: Object
- External object whose key is to be validated.
For information about the equals method, see Using Custom Types in Map Keys and Sets.
Return Value
Type: Boolean
failure(externalId, errorMessage)
Signature
public static DataSource.DeleteResult failure(String externalId, String errorMessage)
Parameters
hashCode()
Signature
public Integer hashCode()
Return Value
Type: Integer
success(externalId)
Signature
public static DataSource.DeleteResult success(String externalId)
Parameters
- externalId
- Type: String
- The unique identifier of the sObject record to delete.
Return Value
Type: DataSource.DeleteResult
Status result of the delete operation for the sObject with the given external ID.