Universal Containers recently transitioned from Classic to Lightning Experience. One of its business processes requires certain values from the Opportunity object to be sent via an HTTP REST callout to its external order management system based on a user-initiated action on the Opportunity detail page. Example values are as follows:

Universal Containers recently transitioned from Classic to Lightning Experience. One of its business processes requires certain values from the Opportunity object to be sent via an HTTP REST callout to its external order management system based on a user-initiated action on the Opportunity detail page. Example values are as follows:
– Name
– Amount
– Account
Which two methods should the developer implement to fulfill the business requirement? (Choose two.)
A. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.
B. Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.
C. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
D. Create an after update trigger on the Opportunity object that calls a helper method using @Future(Callout=true) to perform the HTTP REST callout.

CRT-450: Salesforce Certified Platform Developer I

Free dumps for CRT-450 in PDF format.

High quality CRT-450 PDF and software. VALID exam to help you pass.

Download Printable PDF. VALID exam to help you PASS.

6 thoughts on “Universal Containers recently transitioned from Classic to Lightning Experience. One of its business processes requires certain values from the Opportunity object to be sent via an HTTP REST callout to its external order management system based on a user-initiated action on the Opportunity detail page. Example values are as follows:

  1. Hi,

    HTTP callout can be made using all the 4possible options, i.e. through Process Builder, Visualforce Page, Trigger, and Lightning Component.

    In this question, it is specifically asked to make a callout on a user-initiated action, hence we can eliminate Process Builder and Trigger, as in both cases we will not have any control over the Http-callout made.

    This leaves us with 2 options using VFPage and Lightning Component.

    Hence I would go with option B and D.

    7
    5
    1. Why wouldn’t it be possible to make a call out on a user-initiated action in a trigger?
      And if you use @future(callout=true) in the trigger you make sure to run the job in a separate thread, so than you have some sort of control over it right? Since its mentioned that UC moves away from classic, VF should not be a consideration I guess.

      1. A trigger only fires on a DML statement. But in this case the user-initiated action is not necessarily an edit to the Opportunity. Maybe there is an action on the Opportunity that says “send to external system”.

  2. Hi,

    HTTP callout can be made using all the 4possible options, i.e. through Process Builder, Visualforce Page, Trigger, and Lightning Component.

    In this question, it is specifically asked to make a callout on a user-initiated action, hence we can eliminate Process Builder and Trigger, as in both cases we will not have any control over the Http-callout made.

    This leaves us with 2 options using VFPage and Lightning Component.

    Hence I would go with option B and D.

    – Yatharth Bhatnagar

    2
    1

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.