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?
A. Apex invocable method
B. Remote action
C. Flow Builder
D. Apex trigger
Suggest answer: D
Reference:
No comments:
Please share to make the community better.