Which type of trigger would the developer create? A developer needs to automatically populate the ReportsTo fieldin a Contact record based on the values of the related Accountand Department fields in the Contact record.
A. Before update B. After update C. Before insert D. After insert
M. Porter, Senior Executive, Master of Art, San Jose
Answered Mar 28, 2019
The correct answer to this question is C, before insert. This question is in reference to Salesforce, which is a customer relationship management product, more commonly referred to as a CRM. Salesforce is an American cloud-based software company based out of San Francisco, California in the USA.
Salesforce helps business create and buile meaningful and lasting relationships and connect with customers across sales, customer service, marketing, communities, apps, and/or analytics. The best option is an Apex trigger or perhaps a batch Apex class that runs daily or something and populates the data you want from the contact Owner, thus before insert.