43 questions
Triggers interview questions
Original verified answers. Tag what matters in your dashboard.
- SF-0323 What is a trigger? Concept Easy
- SF-0324 Explain the different types of triggers? Concept Easy
- SF-0325 What are the different types of trigger events in salesforce? Concept Easy
- SF-0326 Can you write trigger syntax and an example? Coding Easy
- SF-0327 What are Trigger context variables? Concept Medium
- SF-0328 What is the difference between Trigger.New and Trigger.Old? Compare Medium
- SF-0329 What is the difference between Trigger.New and Trigger.NewMap? Compare Medium
- SF-0330 Availability matrix for Trigger.New, Trigger.NewMap, Trigger.Old and Trigger.Old Map? Concept Medium
- SF-0331 Can we call batch apex in trigger? Scenario Medium
- SF-0332 Can a trigger make a call to the apex callout method? Scenario Medium
- SF-0333 Can we call a scheduled class from the trigger? Scenario Medium
- SF-0334 What is a recursive Trigger? Concept Medium
- SF-0335 How to avoid the recursive trigger? Scenario Medium
- SF-0336 How to show the error messages on the page or on the field using Trigger. (similar to validation rules error)? Coding Medium
- SF-0337 When an account is created then automatically 3 contacts should be created. On what object we should write the trigger? Scenario Medium
- SF-0338 When an account is created then automatically 3 contacts should be created. What type of trigger should it be? (Before or After) Scenario Medium
- SF-0339 How many triggers can we create on an object? Scenario Medium
- SF-0340 What are bulk triggers? or How to bulkify triggers? Concept Medium
- SF-0341 What are trigger handlers? Concept Medium
- SF-0342 What are helper classes? Concept Medium
- SF-0343 What are triggers best practices? Concept Medium
- SF-0344 Explain Triggers order of execution? Concept Hard
- SF-9217 In a before-insert trigger, which is correct — Trigger.new or Trigger.newMap? Scenario Medium
- SF-9223 Write a trigger to update child records when a parent record is updated Scenario Medium
- SF-9225 How do you debug an Apex trigger that is not firing? Scenario Medium
- SF-9269 Restrict users from updating Account records more than once within 1 hour Scenario Easy
- SF-9270 Prevent an Account from being moved from 'Active: Yes' back to 'No' after activation Scenario Medium
- SF-9275 Calculate total contacts per Account and update the count when contacts change Scenario Easy
- SF-9280 Write a trigger to update related contact phone numbers when the account phone number changes Scenario Medium
- SF-9281 Create a trigger that prevents deletion of an account if it has active opportunities Scenario Medium
- SF-9282 Trigger to automatically create a task when a high-value opportunity is Closed Won Scenario Medium
- SF-9283 Trigger to convert all account names to uppercase before saving Scenario Medium
- SF-9284 Trigger that automatically creates a contact record when a new account is created Scenario Medium
- SF-9285 Trigger to send a notification when a project record is restored from the recycle bin Scenario Medium
- SF-9286 Trigger that prevents recursion during record updates Scenario Hard
- SF-9287 Trigger that updates a custom status field when a checkbox value changes Scenario Medium
- SF-9288 Trigger to create follow-up tasks for the account manager after high-value opportunities close Scenario Medium
- SF-9289 Trigger that compares old and new field values to detect when an account name changes Scenario Medium
- SF-9291 Apex script to update a field on all Account records whenever an Opportunity closes as Won Scenario Easy
- SF-9292 Prevent Contact records from being deleted if they are associated with an active Opportunity Scenario Medium
- SF-9296 Populate a custom Account field with a unique identifier upon record creation Scenario Easy
- SF-9307 On Lead conversion, update a custom field on the resulting Account based on Lead info Scenario Easy
- SF-9318 Restrict deletion of Opportunities to only those in certain stages Scenario Easy
Track your prep
Open this list in your dashboard.
Star questions, set status, group them — synced across devices.