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
DannyK89DannyK89 

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?

BritishBoyinDCBritishBoyinDC

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...

DannyK89DannyK89

What I'm trying to do is run a trigger or class from the Oppurtunity record detail page.