I have a scenario where I would like to fetch all the deleted records at salesforce end and send to UI using java.
I tried with the following SOQL:
SELECT Id, IsDeleted, CreatedDate, LastModifiedDate FROM Note ALL ROWS
I end up with response as:
[ {
"message" : "ALL ROWS not allowed in this context",
"errorCode" : "MALFORMED_QUERY"
} ]
Can someone help me on this?