nerdexam
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)
  • A
    4% (1)
  • B
    12% (3)
  • C
    4% (1)
  • D
    80% (20)

Community Discussion

No community discussion yet for this question.

Full PDII Practice