Refer to the code snippet below:
As part of an integration development effort, a developer is tasked to create an Apex method that solely relies on the use of foreign identifiers in order to relate new contact records to existing Accounts in Salesforce. The account object contains a field marked as an external ID, the API Name of this field is Legacy_Id_c.
What is the most efficient way to instantiate the parentAccount variable on line 02 to ensure the newly created contact is properly related to the Account?
BrucePark
Highly Voted 1 year, 2 months agoM4JK3LSON
10 months, 3 weeks agotrue_dev
Most Recent 1 month agoFriedConsole2000
8 months, 2 weeks agoSapphire808
1 year, 1 month ago[Removed]
1 year, 2 months ago