Which type of trigger should a developer create to automatically populate the Reports to field in a contact record( based on the values of the 60- related account and department fields in the contact record)? <
The developer would pick to create the “before insert” and “before update” triggers. The “before insert” is triggered when any attempt is made to put something into a field. By making the field automatically populate with this trigger, the developer is saved quite a bit of time. The “before update” trigger will trigger when the developer attempts to update the field. This allows the developer to make updates if needed.
Since these triggers can also be modified, and therefore which contacts are added with each trigger, the developer can divide the contacts into groups if that makes it easier. Say one group needs to know everything, while one group only needs a few things. This would be a good place for the “before insert” to have one group of contacts, and the “before update” to have another.