What is trigger.old and when do you normally use it?



What is trigger.old and when do you normally use it?..

Answer / Khushboo Gupta

trigger.old represents the old version or previous state of a record before an update, insert, or delete event occurs in Salesforce Apex triggers. It's used to compare the old and new versions of a record, allowing developers to implement business logic based on the differences.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Salesforce Interview Questions

What are Standard Business Objects?

1 Answers  


Is it necessary to define an explicit primary key in custom objects? : salesforce Data Management

1 Answers  


How can the developer force help you?

1 Answers  


Mention what is the use of the static resource in salesforce?

1 Answers  


What is a 'bucket field'?

1 Answers  


What is the difference between trigger. New, trigger. Old, trigger.newmap and trigger.oldmap?

1 Answers  


How good is salesforce when used in sales?

1 Answers  


What is a Workflow Rule?

1 Answers  


What is the usage of apex program with within visual force page?

1 Answers  


What is self-relationship?

1 Answers  


Is it possible that data you see on dashboard and data you see on report after drilling down the report on dashboard are different? : salesforce reports and dashboards

1 Answers  


What is a visualforce page?

1 Answers  


Categories