function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ritika SinghRitika 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
Agustin BAgustin B
Hi, Option (C) and (D) are the correct answers.

If it helps please mark as correct as it may help others that have the same question.
Yatharth BhatnagarYatharth Bhatnagar
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 and D.

If someone else has a justification for different answers/perceptions, I would be interested to know. 
Deep898747Deep898747
Thanks for the answer with explanation.
Alexia SparrowAlexia Sparrow
Hi, Ritika Thanks for sharing this whole process to make the HTTP REST. I am a developer and making the https://writinguniverse.com/persuasive-essay-topics/ website and I am also facing this problem. This site is an essay-related help site and now I think I will resolve my problem easily. I want to complete this work soon because this site provides essay-related help to the students.
Awa NeytonAwa Neyton
Furthermore, our plagiarism software tool is consistently upgraded https://expertpaperwriter.com/paper-rater-review/ to ensure that it detects plagiarized texts with high certainty and accuracy.
Sam HebasstSam Hebasst
You can rest assured that all of our services are completely confidential and paper writing service (https://us.masterpapers.com/)you will have full credit for the paper. All of our services are created from scratch by professional writers.
Deersha WriterDeersha Writer
f you are looking for PhD research assistance, Deersha Writer is a great option to consider. We offer a wide range of high-quality and reliable services at affordable prices. https://deershawriter.com/