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.
GetDeletedResult Class
Namespace
Usage
The Database.getDeleted method returns the deleted record information as a Database.GetDeletedResult object.
GetDeletedResult Methods
The following are methods for GetDeletedResult. All are instance methods.
getDeletedRecords()
Signature
public List<Database.DeletedRecord> getDeletedRecords()
Return Value
Type: List<Database.DeletedRecord>
getEarliestDateAvailable()
Signature
public Date getEarliestDateAvailable()
Return Value
Type: Date
getLatestDateCovered()
Signature
public Date getLatestDateCovered()
Return Value
Type: Date
Usage
If there is a value, it is less than or equal to the endDate argument of Database.getDeleted. A value here indicates that, for safety, you should use this value for the startDate of your next call to capture the changes that started after this date but didn’t complete before endDate and were, therefore, not returned in the previous call.