Valid PDI Dumps shared by ExamDiscuss.com for Helping Passing PDI Exam! ExamDiscuss.com now offer the newest PDI exam dumps, the ExamDiscuss.com PDI exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com PDI dumps with Test Engine here:
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?
Correct Answer: B
An Apex REST class can be used to retrieve real-time data from an external order management system. The flow can then call the REST class to display the retrieved data on the screen dynamically. Reference:Apex REST Web Services
Recent Comments (The most recent comments are at the top.)
Yassine - Oct 20, 2026
Answer: D. An invocable method
A screen flow can call Apex through an Apex action, which runs a method annotated with @InvocableMethod. The method makes the callout to the external order management system in real time and returns the order numbers and dates. The flow then shows them on a screen, for example in a data table or a choice list.
apex public class GetExternalOrders { public class Request { @InvocableVariable public String customerId; } public class OrderInfo { @InvocableVariable public String orderNumber; @InvocableVariable public Date orderDate; }
@InvocableMethod(label='Get external orders' callout=true) public static List<List<OrderInfo>> getOrders(List<Request> requests) { // HTTP callout to the order system, then build and return the results } }
The callout=true setting is needed so the flow can make the callout.
The other options don’t fit:
A. Outbound message: It pushes data from Salesforce to an external system when a workflow rule fires. It can’t retrieve data on demand. B. Apex REST class: It exposes Salesforce as a web service that external systems call into. It is for inbound requests, not for calling out to another system. C. Apex controller: It backs Visualforce pages and Lightning components. A flow can’t call it directly, and only methods exposed as invocable actions are available in Flow....
Yassine - Oct 20, 2026
Answer: D. An invocable method
A screen flow can call Apex through an Apex action, which runs a method annotated with @InvocableMethod. The method makes the callout to the external order management system in real time and returns the order numbers and dates. The flow then shows them on a screen, for example in a data table or a choice list.
apex public class GetExternalOrders { public class Request { @InvocableVariable public String customerId; } public class OrderInfo { @InvocableVariable public String orderNumber; @InvocableVariable public Date orderDate; }
@InvocableMethod(label='Get external orders' callout=true) public static List<List<OrderInfo>> getOrders(List<Request> requests) { // HTTP callout to the order system, then build and return the results } }
The callout=true setting is needed so the flow can make the callout.
The other options don’t fit:
A. Outbound message: It pushes data from Salesforce to an external system when a workflow rule fires. It can’t retrieve data on demand. B. Apex REST class: It exposes Salesforce as a web service that external systems call into. It is for inbound requests, not for calling out to another system. C. Apex controller: It backs Visualforce pages and Lightning components. A flow can’t call it directly, and only methods exposed as invocable actions are available in Flow....
Recent Comments (The most recent comments are at the top.)
Answer: D. An invocable method
A screen flow can call Apex through an Apex action, which runs a method annotated with @InvocableMethod. The method makes the callout to the external order management system in real time and returns the order numbers and dates. The flow then shows them on a screen, for example in a data table or a choice list.
apex
public class GetExternalOrders {
public class Request { @InvocableVariable public String customerId; }
public class OrderInfo {
@InvocableVariable public String orderNumber;
@InvocableVariable public Date orderDate;
}
@InvocableMethod(label='Get external orders' callout=true)
public static List<List<OrderInfo>> getOrders(List<Request> requests) {
// HTTP callout to the order system, then build and return the results
}
}
The callout=true setting is needed so the flow can make the callout.
The other options don’t fit:
A. Outbound message: It pushes data from Salesforce to an external system when a workflow rule fires. It can’t retrieve data on demand.
B. Apex REST class: It exposes Salesforce as a web service that external systems call into. It is for inbound requests, not for calling out to another system.
C. Apex controller: It backs Visualforce pages and Lightning components. A flow can’t call it directly, and only methods exposed as invocable actions are available in Flow....
Answer: D. An invocable method
A screen flow can call Apex through an Apex action, which runs a method annotated with @InvocableMethod. The method makes the callout to the external order management system in real time and returns the order numbers and dates. The flow then shows them on a screen, for example in a data table or a choice list.
apex
public class GetExternalOrders {
public class Request { @InvocableVariable public String customerId; }
public class OrderInfo {
@InvocableVariable public String orderNumber;
@InvocableVariable public Date orderDate;
}
@InvocableMethod(label='Get external orders' callout=true)
public static List<List<OrderInfo>> getOrders(List<Request> requests) {
// HTTP callout to the order system, then build and return the results
}
}
The callout=true setting is needed so the flow can make the callout.
The other options don’t fit:
A. Outbound message: It pushes data from Salesforce to an external system when a workflow rule fires. It can’t retrieve data on demand.
B. Apex REST class: It exposes Salesforce as a web service that external systems call into. It is for inbound requests, not for calling out to another system.
C. Apex controller: It backs Visualforce pages and Lightning components. A flow can’t call it directly, and only methods exposed as invocable actions are available in Flow....