Salesforce Apex Triggers Interview Questions/Scenarios
Hello, This post is regarding some apex trigger interview questions. These questions are for Novice to Intermediate level developers. I feel these questions/scenarios would be helpful for practice. PS: The questions below are collected from the internet and some of them are which I was asked in the interviews I appeared for. 1. Create "Sales Rep" field with the datatype (Text) on the Account object. When we create an Account record, the Account's owner name will be automatically added to the sales rep field. When we update the Account owner of the record, then also the Sales Rep will be automatically updated. 2. Create a field called "Contact Relationship"(checkbox) on the contact object and create the object called "Contact Relationship" which is related to Contacts (Lookup Relationship). Now build a logic when we create contact by checking the Contact Relationship checkbox, a Contact Relationship record will be created automatically for that c...