Newer Version Available
DeleteByExampleResult
The deleteByExample() call returns an array of
DeleteByExampleResult objects.
Each element in the DeleteByExampleResult array corresponds to the sObject[] array passed in the deleteByExample() call. For example, the object returned in the first index in the DeleteByExampleResult array matches the sObject specified in the first index of the sObject[] array.
A DeleteByExampleResult object has these properties.
| Name | Type | Description |
|---|---|---|
| entity | sObject | Details for the sObject that you attempted to delete. |
| rowCount | long | Indicates the number of rows that were deleted. |
| success | boolean | Indicates whether the deleteByExample() call succeeded (true) or not (false) for this object. |
| errors | Error[] | If an error occurred during the deleteByExample() call, an array of one or more Error objects providing the error information. |