Which type of trigger would the developer create? A developer needs - ProProfs Discuss
Topics
Products
Follow Us:

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

This question is part of Exam ng Pabebe Girls
Asked by Catherine halcombe, Last updated: May 28, 2020

+ Answer
Request

5 Answers

pasha

Pasha

Answered Feb 01, 2017

1. Before update

3. Before insert

1
 

M. Porter

Here to relax my mind a bit

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.

 

drozdps

Drozdps

Answered Feb 28, 2017

The answer is 1 and 3 because Account and Department fields are in the Contact record, too.
 

zix

Zix

Answered Dec 21, 2016

Current record - ALWAYS 'before'
other records- ALWAYS 'after'
 1

John Adney

'after' - record is read-only

John Smith

John Smith

Answered Oct 26, 2016

After update
2. After insert
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.