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
CaitlinGMCaitlinGM 

how to deploy updated version of active trigger

I need to write over an existing, active trigger in production with a new, updated version, and do the same for a test class. What is the best way to do this? If I create a change set with the new version of the trigger and test and deploy them while the first version is still active, will it write over the first version? Or do I need to remove the old versions first?

 

I'm more comfortable using change sets, but can use Eclipse if needed to do this.

 

Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
Rahul SharmaRahul Sharma

When you try to deploy updated code in production the older code gets overide.

If you want to deploy using eclipse then just select the required trigger with its test class and deploy it to the production.

All Answers

Rahul SharmaRahul Sharma

When you try to deploy updated code in production the older code gets overide.

If you want to deploy using eclipse then just select the required trigger with its test class and deploy it to the production.

This was selected as the best answer
UVUV

Make sure you keep the same name for the trigger and test class to overwrite the oldest one's in production.

CaitlinGMCaitlinGM
Thank you, I'm glad it's that easy. I was able to make my updates today.