nerdexam
Salesforce

PDI · Question #12

Cloud kicks has a multi-screen flow that 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…

The correct answer is B. An Apex REST class. To retrieve and display real-time order data from an external system within a Salesforce Flow, a developer should use an Apex REST class to perform the necessary callout.

Submitted by lucia.co· Apr 18, 2026Logic and Process Automation

Question

Cloud kicks has a multi-screen flow that 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 numbers and dates that are retrieved from an external order management system in real time and displayed on the screen. What should a developer use to satisfy this requirement?

Options

  • AAn Apex controller
  • BAn Apex REST class
  • CAn outbound message
  • DAn invocable method

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    70% (16)
  • C
    9% (2)
  • D
    17% (4)

Why each option

To retrieve and display real-time order data from an external system within a Salesforce Flow, a developer should use an Apex REST class to perform the necessary callout.

AAn Apex controller

While an Apex controller is used in Visualforce or Lightning components, it doesn't directly facilitate real-time external data retrieval for a Flow screen without the specific implementation of a REST callout.

BAn Apex REST classCorrect

An Apex REST class can be designed to make an HTTP callout to an external Order Management System (OMS) to fetch real-time data. This Apex logic can then be exposed as an invocable action for consumption by a Flow, allowing the Flow to retrieve and display dynamic data on a screen.

CAn outbound message

An outbound message is used for sending data *out* of Salesforce based on a record change, not for retrieving real-time data *into* a Flow for display.

DAn invocable method

An invocable method is the *interface* that allows a Flow to call Apex code, but it doesn't describe the *mechanism* for retrieving external data; the Apex class containing the HTTP REST callout logic (option B) is the core solution.

Concept tested: Flow integration with external systems (REST callout)

Source: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_rest.htm

Topics

#Apex Callouts#External Integration#Salesforce Flow#Real-time Data

Community Discussion

No community discussion yet for this question.

Full PDI Practice