• Alek Mesarovich 9
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
I'm trying to get a list of deleted records through the REST API but it doesn't seem to be working.

Here is the CURL command I'm using (pretty much straight from the doc).

curl -v 'https://na30.salesforce.com/services/data/v20.0/sobjects/lead/deleted/' \
-H 'Authorization: Bearer <lots of characters>' \
-H 'X-PrettyPrint:1' \
-d 'start=2016-06-19T21:32:42.000+0000' \
-d 'end=2016-08-19T21:32:42.000+0000'

Here's the response I get:

[ {
  "errorCode" : "NOT_FOUND",
  "message" : "The requested resource does not exist"
} ]* Connection #0 to host na30.salesforce.com left intact

What should this command look like?
 
I'm new to the SF world but have gotten a bunch REST API calls for "q/SELECT... " queries to work. Trying now to move on to "get deleted" and "get updated". Neither of which seems to be working.

Here's my call: 

https://na30.salesforce.com/services/data/v29.0/sobjects/Lead/deleted/?start=2016-06-27T09%3A07%3A36.195-0500&end=2016-06-27T09%3A37%3A18.656-0500

The response is:

Invalid response: HTTP/1.1 400 Bad Request

changing "deleted" to "updated" gets exactly the same result.

I did an "sobjects" call and my Lead object does have "replicateable":true set which the doc implied was necessary.

Where's my mistake?
I'm trying to get a list of deleted records through the REST API but it doesn't seem to be working.

Here is the CURL command I'm using (pretty much straight from the doc).

curl -v 'https://na30.salesforce.com/services/data/v20.0/sobjects/lead/deleted/' \
-H 'Authorization: Bearer <lots of characters>' \
-H 'X-PrettyPrint:1' \
-d 'start=2016-06-19T21:32:42.000+0000' \
-d 'end=2016-08-19T21:32:42.000+0000'

Here's the response I get:

[ {
  "errorCode" : "NOT_FOUND",
  "message" : "The requested resource does not exist"
} ]* Connection #0 to host na30.salesforce.com left intact

What should this command look like?