Difference between getDeleted() and queryAll()
DescriptiongetDeleted() and queryAll() API calls look similar since most of customers use these methods to retrieve the deleted records.
Here are the differences between these calls;
Physical Delete* - A Manual job run to hard delete the records from the server.
- queryAll() returns all the deleted and non-deleted records with complete record details requested, however, getDeleted() only returns the Id of the deleted records.
- In order to use queryAll() call for retrieving deleted records add isdeleted = true in filter criteria.
- queryAll() and getDeleted() can retrieve the records in the recycle bin and also the records deleted from the recycle bin for 15 days or before being purged by Physical Delete*. The data can be in soft-deleted state for 15 days before permanent deletion.
Physical Delete* - A Manual job run to hard delete the records from the server.
Read full article from Difference between getDeleted() and queryAll()
No comments:
Post a Comment