Which type of trigger should a developer create to automatically - ProProfs Discuss
Advertisement

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)? 
<

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)? <br/><

Change Image    Delete

Asked by Kevindotcar, Last updated: Nov 20, 2024

+ Answer
Request
Question menu
Vote up Vote down

2 Answers

John Smith

John Smith

John Smith
John Smith

Answered Dec 16, 2016

Before update
Before Insert
upvote 1 downvote
Reply 

Markda John

Markda John

Markda John
Markda John

Answered Jan 02, 2018

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.

upvote downvote
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.