Salesforce
PDII · Question #282
A company has reference data stored in multiple custom metadata records that represent default information and delete behavior for certain geographic regions. When a contact is inserted, the default…
The correct answer is D. Apex trigger. See the full explanation below for the reasoning.
Question
A company has reference data stored in multiple custom metadata records that represent default information and delete behavior for certain geographic regions. When a contact is inserted, the default information should be set on the contact from the custom metadata records based on the contact's address information. Additionally, if a user attempts to delete a contact that belongs to a flagged region, the user must get an error message. What is the optimal way to automate this?
Options
- AApex invocable method
- BRemote action
- CFlow Builder
- DApex trigger
How the community answered
(25 responses)- A4% (1)
- B12% (3)
- C4% (1)
- D80% (20)
Community Discussion
No community discussion yet for this question.