What are the different context variables available in apex triggers ?



What are the different context variables available in apex triggers ?..

Answer / Neelabh Shukla

Different context variables available in Apex triggers include: Trigger.New (List<SObject>) for new records being inserted, Trigger.Old (List<SObject>) for records being updated or deleted, Trigger.oldMap (Map<Id, SObject>) to access old values of individual records before updates, and Trigger.isInsert (boolean) for determining if the current trigger is firing due to an insert operation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Salesforce Interview Questions

what are future methods and where are they used ?

1 Answers  


Will one workflow effects another workflow?

1 Answers   Accenture,


What is Standard and Custom Fields in Salesforce?

1 Answers  


Why use batch apex?

1 Answers  


What is a matrix report? : salesforce admin

1 Answers  


Do we need a namespace to develop lightning components?

1 Answers  


What is the difference between 15 digit and 18 digit id in salesforce?

1 Answers  


How many reports types are there in Salesforce?

1 Answers  


What is field-level security? How do you set field-level security on a single field for all profiles?

1 Answers  


What is a lead?

1 Answers  


What is the junction object and what purpose does it serve?

1 Answers  


Can we use pagereference in lightning component? : salesforce lightning component

1 Answers  


Categories