PDI · Question #155
Cloud kicks has a muli-screen flow its call center agents use when handling inbound service desk calls. At one of the steps in the flow, the agents should be presented with a list of order number…
The correct answer is B. An apex REST class. To enable a multi-screen flow to retrieve and display real-time data from an external order management system, an Apex class designed for making REST callouts is the most suitable solution.
Question
Cloud kicks has a muli-screen flow its call center agents use when handling inbound service desk calls. At one of the steps in the flow, the agents should be presented with a list of order number and dates that are retrieved from an external odrer management system in real time and displayed on the screen. What shuold a developer use to satisfy this requirement?
Options
- AAn invocae method
- BAn apex REST class
- CAn outbound message
- DAn Apex Controller
How the community answered
(40 responses)- A3% (1)
- B80% (32)
- C10% (4)
- D8% (3)
Why each option
To enable a multi-screen flow to retrieve and display real-time data from an external order management system, an Apex class designed for making REST callouts is the most suitable solution.
An invocable method is the mechanism to call Apex from a Flow, but it doesn't describe the specific implementation for external system integration; the actual logic for a REST callout would reside *within* such a method.
An Apex class can be written to make outbound REST API callouts to external systems, such as an order management system, to retrieve data in real-time. This class can then be exposed to the Flow using an @InvocableMethod annotation, allowing the Flow to execute the callout and process the returned data for display.
An outbound message is used to send data from Salesforce to an external system based on record changes, not for actively retrieving real-time data from an external system.
While an Apex controller contains business logic, an 'Apex REST class' (interpreted as an Apex class making REST callouts) is the specific construct for this type of external service integration.
Concept tested: Integrating Flows with external REST APIs using Apex.
Source: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_integration_callouts.htm
Topics
Community Discussion
No community discussion yet for this question.