Posts

Showing posts with the label getUpdated

Salesforce Fact #626 | getUpdated and getDeleted methods

Image
There are methods in Database class which can get us the list of records of a particular SObject type which got updated/deleted within a particular interval. Database.getUpdated() and Database.getDeleted() are the two methods. Also, it does not count towards the SOQL query and rowcount limit. Reference:  https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_database.htm#apex_System_Database_getUpdated Attached is the screenshot.