A company represents their customers as Accounts that have an External ID field called
Customer_Number c. They have a custom Order (Order c) object, with a Lookup to Account, to represent Orders that are placed in their external order management system (OMS).
When an order is fulfilled in the OMS, a REST call to Salesforce should be made that creates an Order record in Salesforce and relates it to the proper Account.
What is the optimal way to implement this?
- Perform a REST GET on the Account and a REST POST to update the Order c with the Account’s record ID.
- Perform a REST PATCH to upsert the Order c and specify the Account’s Customer_Number c in it.
- Perform a REST POST to update the Order c and specify the Account’s Customer_Number c in it.
- Perform a REST GET on the Account and a REST PATCH to upsert the Order c with the Account’s record I
Reveal Solution Next Question