primaryid__c カスタム フィールドは candidate_ c カスタム オブジェクトに存在します。このフィールドは各候補者の ID 番号を保存するために使用され、スキーマ定義で Unique としてマークされています。 データ拡充プロセスの一環として、Universal Containers には、システム内のすべての候補者の更新されたデータを含む CSV ファイルがあります。ファイルには、各候補者のプライマリ ID がデータ ポイントとして含まれています。Universal Containers は、すべてのデータ行がシステム内の候補者に正しくマッピングされていることを確認しながら、この情報を Salesforce にアップロードしたいと考えています。 データのアップロードを効率化するために、開発者はどの手法を実装する必要がありますか?
正解:C
Option C: Update the PrimaryId__c field definition to mark it as an External Id. Correct Answer. Marking PrimaryId__c as an External ID allows data loading tools to match records based on this field. This facilitates upserting data and ensures that the CSV data correctly maps to existing records. A trigger is unnecessary when External IDs can be used for mapping. Option B: Create a before save flow to correctly map the records. Incorrect. A flow adds unnecessary complexity; External IDs suffice. Option D: Upload the CSV into a custom object related to Candidate__c. Unnecessary. This does not streamline the process and complicates data management. Conclusion: The developer should update the PrimaryId__c field to mark it as an External ID, which is Option C. Reference: Upserting Records with External IDs Option A: Create a before Insert trigger to correctly map the records. Incorrect.