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
DavidPSGDavidPSG 

Apex and Custom button?

I want to add a custom button to the contract object that will execute Apex code.  Based on my research so far this does not seem to be possible, but I'm hoping I missed something.

 

If it is possible, can anyone point me in the right direction on how it is done?

 

Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
aalbertaalbert
This blog posting talks about this: http://blog.sforce.com/sforce/2009/01/calling-apex-code-from-a-custom-button-using-a-visualforce-page.html

All Answers

aalbertaalbert
This blog posting talks about this: http://blog.sforce.com/sforce/2009/01/calling-apex-code-from-a-custom-button-using-a-visualforce-page.html
This was selected as the best answer
DavidPSGDavidPSG

aalbert:

 

Thanks very much.  Just what I was looking for!