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.
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 external ID of the record to delete.
Return Value
Type: DataSource.DeleteResult
Status result of the delete operation for the sObject with the given external ID.