13.07.2015 Views

Database.com REST API Developer's Guide - Salesforce.com

Database.com REST API Developer's Guide - Salesforce.com

Database.com REST API Developer's Guide - Salesforce.com

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ReferenceSObject Get DeletedHTTP MethodGETAuthenticationAuthorization: Bearer tokenParametersExamplenone requiredSee Get Field and Other Metadata for an Object on page 32. For an example that uses the If-Modified-SinceHTTP header, see Get Object Metadata Changes on page 33.SObject Get DeletedRetrieves the list of individual records that have been deleted within the given timespan for the specified object. SObject GetDeleted is available in <strong>API</strong> version 29.0 and later.This resource is <strong>com</strong>monly used in data replication applications. Note the following considerations:• Deleted records are written to a delete log which this resource accesses. A background process that runs every two hourspurges records that have been in an organization's delete log for more than two hours if the number of records is above acertain limit. Starting with the oldest records, the process purges delete log entries until the delete log is back below thelimit. This is done to protect <strong>Database</strong>.<strong>com</strong> from performance issues related to massive delete logs• Information on deleted records are returned only if the current session user has access to them.• Results are returned for no more than 15 days previous to the day the call is executed (or earlier if an administrator haspurged the Recycle Bin).See “Data Replication” in the SOAP <strong>API</strong> <strong>Developer's</strong> <strong>Guide</strong> for additional details on data replication and data replication limits.URIFormats/vXX.X/sobjects/SObjectName/deleted/?start=startDateAndTime&end=endDateAndTimeJSON, XMLHTTP MethodGETAuthenticationAuthorization: Bearer tokenParametersParameterstartDescriptionStarting date/time (Coordinated Universal Time (UTC)—not local— timezone)of the timespan for which to retrieve the data. The <strong>API</strong> ignores the secondsportion of the specified dateTime value (for example, 12:30:15 is interpretedas 12:30:00 UTC). The date and time should be provided in ISO 8601 format:YYYY-MM-DDThh:mm:ss+hh:mm. The date/time value for start mustchronologically precede end. This parameter should be URL-encoded.58

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!