Which type of trigger would the developer create in the given - ProProfs Discuss
Advertisement

Which type of trigger would the developer create in the given scenario?

Which type of trigger would the developer create in the given scenario?

Change Image    Delete

The 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.

Asked by Catherine halcombe, Last updated: Nov 12, 2024

+ Answer
Request
Question menu
Vote up Vote down

5 Answers

pasha149

pasha

pasha149
Pasha

Answered Feb 01, 2017

1. Before update

3. Before insert

upvote 2 downvote
Reply 

M. Porter

M. Porter

Here to relax my mind a bit

M. Porter
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.

upvote downvote
Reply 

drozdps

drozdps

drozdps
Drozdps

Answered Feb 28, 2017

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

zix66

zix

zix66
Zix

Answered Dec 21, 2016

Current record - ALWAYS 'before'
other records- ALWAYS 'after'
upvote downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered Oct 26, 2016

After update
2. After insert
upvote downvote 1
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

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