開発者は、連絡先用および調査応答 c と呼ばれるカスタム オブジェクト用にシステムに入力された電子メール アドレスが、ブロックされたドメインのリストに属していないことを確認する任務を負っています。 ブロックされたドメインのリストは、ユーザーによるメンテナンスを容易にするためにカスタム オブジェクトに保存されます。アンケートの応答 c オブジェクトは、カスタム Visualforce ページを介して設定されます。 これを実装する最適な方法は何ですか?
正解:B
The optimal way to enforce the exclusion of blocked domains for email addresses entered into Contacts and a custom object is to use a helper class. The class can be called by an Apex trigger on the Contact object and from the controller of the custom Visualforce page used for the Survey Response. This centralizes the logic for maintainability and reusability.References: Apex Developer Guide - Apex Triggers