function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vinod Kumar 92Vinod Kumar 92 

write a Apex REST to pull the recently updated records from my salesforce org.

I have my own app integrated with salesforce org, I maintain all my Contacts on my app. I want to to pull only the records that are recently updated in my org. If any body share the code it wil be helpful to me.

Thanks
Andy BoettcherAndy Boettcher
Salesforce has a native REST API that you can access this information with relatively low effort.

Check this URL:  https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_query.htm

You'll just need to construct the SOQL - something to the tune of "SELECT Id, FirstName, LastName, AccountId FROM Contact WHERE LastModifiedDate > 'some kind of date you provide'"