Is there a way to query Salesforce records that have been deleted, using python simple-salesforce? In other words can it do this:
SELECT Id FROM Contact WHERE isDeleted=true and masterRecordId != null
AND SystemModstamp > 2006-01-01T23:01:01+01:00
This query is what Salesforce suggests to know when two records have been merged.
While the simple-salesforce deleted() method returns a list of ids deleted, it does not give the masterRecordId.
The Salesforce restful api supports a 'query_all' to get logically deleted records. However simple-salesforce's query_all is a wrapper around query() and query_more()