nerdexam
SalesforceSalesforce

PDI · Question #18

PDI Question #18: Real Exam Question with Answer & Explanation

The correct answer is A: Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action. To enable user-initiated HTTP REST callouts from an Opportunity page in Lightning Experience, a developer can use a Lightning component as a Lightning Action or a Visualforce page as a Visualforce quick action.

Submitted by miguelv· Apr 18, 2026User Interface

Question

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 REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow: Name Amount Account Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers)

Options

  • ACreate a Lightning component that performs the HTTP REST callout, and use a Lightning Action
  • BCreate a Process Builder on the Opportunity object that executes an Apex immediate action to
  • CCreate an after update trigger on the Opportunity object that calls a helper method using
  • DCreate a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick

Explanation

To enable user-initiated HTTP REST callouts from an Opportunity page in Lightning Experience, a developer can use a Lightning component as a Lightning Action or a Visualforce page as a Visualforce quick action.

Common mistakes.

  • B. Process Builder actions, even those invoking Apex, are typically automated processes that run in the background based on criteria, not direct user-initiated actions from the UI on a specific page.
  • C. An after update trigger is a server-side automation that fires automatically after a record is saved; it is not a user-initiated action from the page's user interface.

Concept tested. User-initiated actions for HTTP callouts

Reference. https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/actions_creating.htm

Topics

#Lightning Experience#External Integrations#Quick Actions#Apex Callouts

Community Discussion

No community discussion yet for this question.

Full PDI PracticeBrowse All PDI Questions