Salesforce Platform Developer I (legacy) — Question 170
Universal Containers (UC) is developing a process for their sales teams that requires all sales reps to go through a set of scripted steps with each new customer they create.
In the first step of collecting information, UC’s ERP system must be checked via a REST endpoint to see if the customer exists. If the customer exists, the data must be presented to the sales rep in Salesforce.
Which two should a developer implement to satisfy the requirements? (Choose two.)
Answer options
- A. Trigger
- B. Flow
- C. Invocable method
- D. Future method
Correct answer: B, C
Explanation
To meet the requirements, a Flow can be used to guide the sales rep through the scripted steps and handle the user interface, while an Invocable method can be called from the Flow to interact with the ERP system via the REST endpoint. A Trigger is not suitable as it operates on data changes rather than user interactions, and a Future method is not appropriate here because it is used for asynchronous processing, which is not needed for the immediate customer verification.