(Full question statement)
Universal Containers recently transitioned fromClassic to Lightning Experience. One of its business processes requirescertain values from the Opportunity objectto be sent via anHTTP REST calloutto itsexternal order management systemwhen the user presses a custom button on the Opportunity detail page.
Example fields:
Name
Amount
Account
Which two methods should the developer implement to fulfill the business requirement?
Choose 2 answers.
Comprehensive and Detailed Explanation From Exact Extract:
A (Correct):AVisualforce quick actioncan include Apex logic for a callout, and Visualforce is still valid in Lightning Experience.
C (Correct):ALightning Web Component (or Aura component)exposed as aquick actioncan perform callouts via Apex when the user clicks a button. This supports a more modern UI experience.
Incorrect options:
B:@future(callout=true) works but cannot be triggeredsynchronously by a button press. It's for background/automated processes.
D:Remote Actionis legacy functionality used with Visualforce/Aura and doesn't suit modern Lightning and button-driven synchronous actions.
This is part ofUser Interface (25%)andProcess Automation and Logic (30%), involvingintegration techniques and callouts.
Fausto
26 days agoBilly
1 month agoSlyvia
1 month ago