You need to sign in to do that
Don't have an account?
DannyK89
Running a Trigger or class when you click a button.
Is it possible to have a button on the detail page of an object and when you click on that button can you run a apex trigger or apex class?
http://developer.force.com/cookbook/recipe/creating-a-button-with-apex
The other approach you sometimes see is for the button to call a VF page that executes a call to that class via an extension to the standard controller...
Really good article on how to do this via a VF page.
http://sfdc.arrowpointe.com/2009/01/08/invoke-apex-from-a-custom-button-using-a-visualforce-page/
What I'm trying to do is run a trigger or class from the Oppurtunity record detail page.