Valid CRT-450 Dumps shared by ExamDiscuss.com for Helping Passing CRT-450 Exam! ExamDiscuss.com now offer the newest CRT-450 exam dumps, the ExamDiscuss.com CRT-450 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CRT-450 dumps with Test Engine here:
Einstein Next Best Action Is configured at Universal Containers to display recommendations to internal users on the Account detail page. If the recommendation is approved, a new opportunity record and task should be generated. If the recommendation is rejected, an Apex method must be executed to perform a callout to an external system. Which three factors should a developer keep Hi mind when implementing the Apex method? Choose 3 answers
Correct Answer: B,C,D
To implement the Apex method that is executed when a recommendation is rejected, the developer should keep in mind the following factors: * The method must use the @Future annotation because it performs a callout to an external system, which is not allowed in synchronous Apex. The @Future annotation marks a method as asynchronous, meaning that it runs in a separate thread and does not block the main execution1. * The method must use the @invocableMethod annotation because it is invoked from a flow that is triggered by the Einstein Next Best Action component. The @invocableMethod annotation enables an Apex method to be called from a flow, process, or REST API2. * The method must be defined as static because it is annotated with @Future and @invocableMethod. Both annotations require the method to be static, meaning that it belongs to the class and not to any instance of the class3. References: * 1: Asynchronous Apex * 2: Invocable Apex * 3: Static and Instance Methods, Variables, and Initialization Code
Recent Comments (The most recent comments are at the top.)
Recent Comments (The most recent comments are at the top.)
correct answer is C ,D ,E
https://www.salesforceben.com/salesforce-invocable-apex-methods-a-complete-breakdown/