You need to sign in to do that
Don't have an account?
Ritika Singh
Universal Containers recently transitioned from Classic to Lighting Experience
Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP RESTcallout to its external order management system based on a user-initiated action on the opportunitypage. Example values are as follow* Name* Amount* AccountWhich two methods should the developer implement to fulfill the business requirement?
(Choose 2answers)
A. Create a Process Builder on the Opportunity object that executes an Apex immediate action toperform the HTTP REST callout whenever the Opportunity is updated.
B. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick actionto expose the component on the Opportunity detail page.
C. Create an after update trigger on the Opportunity object that calls a helper method using@Future(Callout=true) to perform the HTTP REST callout.
D. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action toexpose the component on the Opportunity detail page
(Choose 2answers)
A. Create a Process Builder on the Opportunity object that executes an Apex immediate action toperform the HTTP REST callout whenever the Opportunity is updated.
B. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick actionto expose the component on the Opportunity detail page.
C. Create an after update trigger on the Opportunity object that calls a helper method using@Future(Callout=true) to perform the HTTP REST callout.
D. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action toexpose the component on the Opportunity detail page
If it helps please mark as correct as it may help others that have the same question.
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.
If someone else has a justification for different answers/perceptions, I would be interested to know.