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

Activating an Apex Trigger

Hi All,


I made a small modification to an existing Apex Trigger and saved it as a different name.  The new trigger updates a different field based on the same logic as the original trigger.  I also created a new unit test the same way. 


However the new trigger does not do anything.  Is there anything that I need to do to activate the trigger in the sandbox?





Suresh RaghuramSuresh Raghuram

To check the trigger is active or not as follows


go to the code developer console where you wrote the code at the left top you will find a check box, check the check box.


more over write some debug logs and check what is going in your trigger.


BTW: If both triggers run on the same object and action, for performance sake, it is better to have them as a single trigger.