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
Prateek Kumar 11Prateek Kumar 11 

http callout from VF page button/command button

I have a scenrio where I would like to call an apex class method with the click of a button from a VF page. Since, I need to use Opportunity object, I'm looking at creating an extension controller.
Could someone help me determine how could I achieve the required functionality to call a method that makes http request on click of a button, and the external service returns a response that needs to be updated in the Opportunity record from which the button was clicked.

Thanks