83.1k views
3 votes
Returns a list of the old versions of the sObject records. Note that this sObject list is only available in update and delete triggers.

1 Answer

3 votes

Final answer:

The 'getOld()' method returns a list of old versions of sObject records in Salesforce update and delete triggers. It allows access to previous field values of the record.

Step-by-step explanation:

The getOld() method returns a list of the old versions of the sObject records. This method is specifically available in update and delete triggers in Salesforce. When a record is updated or deleted, the getOld() method allows you to access the previous values of the fields in the record.

User Memical
by
8.8k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.