Which capability can be used to accomplish this? - ProProfs Discuss
Cancel
TopicsDown
Products Down
Follow Us:
FacebookTwitter
Advertisement

Which capability can be used to accomplish this?

Universal Containers uses a custom object to track Site Visits. When the status of a Site Visit is changed from In Progress to On Hold the business wants the Site Visit owner to be automatically assigned to an On Hold queue. 

This question is part of my appbuilder
Asked by Pal, Last updated: Sep 21, 2020

+ Answer
Request
Question menu
Vote up Vote down

3 Answers

Olive landon

Olive landon

Science has been working for years in the health department and it has caught my attention since in was in school and I found it very intriguing.

Olive landon
Olive landon, Health science specialist, Master of Health Science (MHS), Logdon, Utah

Answered Sep 21, 2020

For a DML event of this nature, the right capability that can be used to change the status of the site visit from In Progress to On Hold is the Apex trigger. Apex trigger can be used before the insertion of the object records into the database, and can also be used when after records have been deleted.

What this means is that in apex script, there are triggers known as "before triggers," and there are others called "after triggers." If you want to do any updates or you want to validate any record values before triggers are usually used.

However, once the values have already been stored in the database after triggers are used to access and to make certain changes. The various operations that apex triggers can be used to execute insert, delete, update, upsert, merge, undelete. Also, these operations can be subdivided under before triggers and after triggers.

upvote downvote
Reply 

A. Daniels

A. Daniels

A. Daniels
A. Daniels, Professor, San Diego

Answered Mar 29, 2019

The site visit owner can be automatically assigned to an On-Hold queue with Apex trigger. It is an action which gets fired on a particular event. In salesforce trigger, it is apex code that executes before or after the operations. They run before object records are inserted, updated, deleted, and restored.

Apex triggers allow you to perform custom actions before or after changes to Salesforce records, such as insertions, updates, or deletions. Triggers can also modify other records of the same type as the records that initially fired the trigger. Apex code gets executed when its record is saved.

upvote downvote
Reply 

Pal

Pal

Pal
Pal

Answered Jan 25, 2018

B. Apex Trigger
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.