Salesforce
PDII · Question #26
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…
The correct answer is B. Perform a REST PATCH to upsert the Order__c and specify the Account's Customer_Number__c. See the full explanation below for the reasoning.
Question
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?
Options
- APerform a REST GET on the Account and a REST POST to update the Order__c with the
- BPerform a REST PATCH to upsert the Order__c and specify the Account's Customer_Number__c
- CPerform a REST POST to update the Order__c and specify the Account's Customer_Number__c
- DPerform a REST GET on the Account and a REST PATCH to upsert the Order__c with the
How the community answered
(44 responses)- A9% (4)
- B84% (37)
- C5% (2)
- D2% (1)
Community Discussion
No community discussion yet for this question.