Salesforce Fact #626 | getUpdated and getDeleted methods

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.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow