Newer Version Available
Get a List of Updated Records Within a Given Timeframe
Use the sObject Get Updated resource to get a list of updated (modified or added) records for the
specified object. Specify the date and time range within which the records for the given
object were updated.
- Example usage for getting a list of Merchandise__c records that were updated between May 6th, 2013 and May 10th, 2013
-
1curl https://MyDomainName.my.salesforce.com/services/data/v59.0/sobjects/Merchandise__c/updated/?start=2013-05-06T00%3A00%3A00%2B00%3A00&end=2013-05-10T00%3A00%3A00%2B00%3A00 -H "Authorization: Bearer token" - Example request body
- None required
- JSON example response body
-
1{ 2 "ids" : 3 [ 4 "a00D0000008pQR5IAM", 5 "a00D0000008pQRGIA2", 6 "a00D0000008pQRFIA2" 7 ], 8 "latestDateCovered" : "2013-05-08T21:20:00.000+0000" 9} - XML example response body
-
1<?xml version="1.0" encoding="UTF-8"?> 2<Merchandise__c> 3 <ids>a00D0000008pQR5IAM</ids> 4 <ids>a00D0000008pQRGIA2</ids> 5 <ids>a00D0000008pQRFIA2</ids> 6 <latestDateCovered>2013-05-08T21:20:00.000Z</latestDateCovered> 7</Merchandise__c>