4

I am trying to use the following -

http://www.salesforce.com/us/developer/docs/api_rest/Content/resources_getupdated.htm

On 'Document'.

Authentication and everything is successful, even calls to 'describe' are successful but

'updated/deleted' return NOT_FOUND.

What am I missing here .. this is the URL

https://na15.salesforce.com/services/data/v29.0/sobjects/Document/updated/​​​?start=2013-05-06T00:00:00+00:00&end=2013-12-31T00:00:00+00:00
5

It seems like the examples could use a little work. I was able to get it to work by url encoding the start and end date. Also saw got the NOT_FOUND error but by the end of things couldn't tell you how.

Request

/services/data/v29.0/sobjects/Document/updated/?start=2013-12-01T00%3A00%3A00%2B00%3A00&end=2013-12-13T00%3A00%3A00%2B00%3A00

Response

{ "latestDateCovered" : "2013-12-13T00:00:00.000+0000", "ids" : [ "015123456789iLOAAY" ] }

  • Yes, it's quite weird. Thanks for the response. My actual use case is to be notified of any new documents uploaded to the account - { I could potentially use the StreamingApi but my entire infrastructure is based on REST, while the StreamingApi uses Bayeux protocol} - do you think 'updated/deleted' are the best choices for the same. I saw that Box has something called Long Polling - [link](developers.box.com/using-long-polling-to-monitor-events/[link] .. is there a REST equivalent of the same in Salesforce ? Many thanks for the response. – Noob_ForceDev Dec 14 '13 at 3:14
  • That's a really good question, could you repost as a separate question? As a general rule a QA site is a lot better if each discussion focuses narrowly on the original question. – Ralph Callaway Dec 16 '13 at 23:41
  • I just filed a doc bug on this - thanks for posting! – metadaddy Dec 18 '13 at 6:05
  • @metadaddy - also, the documentation says we need to pass in the date time in UTC zone ... when I do pass in something like this start=2013-12-18T07:25:10+0000 - it returns parsing exception. If however, i send start=2013-12-18T07:25:10-0800 - it works. – Noob_ForceDev Dec 18 '13 at 19:28
  • Are you sure you're urlencoding the '+'? What exactly are you passing when it returns the parsing exception? – metadaddy Dec 18 '13 at 22:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.