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
Raj 6Raj 6 

How to add a custom button to detail page of a object and that custom button should link to a trigger

How to add a custom button to detail page of a object and that custom button should link to a trigger
Sonam_SFDCSonam_SFDC
What action do you wish to perform in the custom button?
What you can do is have the trigger logic implemented in a class method and call that method from the button.

reference: https://developer.salesforce.com/forums?id=906F000000091bOIAQ
http://salesforcesource.blogspot.sg/2009/06/triggering-apex-method-with-custom.html