+ Start a Discussion
Kunal Sharma 11Kunal Sharma 11 

How to update an apex class?

Hi There,

I am looking to make a minor change to an apex class in production? What is the best and secure way of making this change? (ie: change it in sandbox, and push the change set through to production? OR make the change in Eclipse and update the changes to the server?)

Also, if you could point me a resource which shows you how to update the code from eclipse to our production environment, it would be much appreciated. Thanks!
I would strongly recommend that you make the change in a sandbox.   You can do it directly in the Salesforce class editing screens in the sandbox or the Ecilpse IDE.  I perfer the IDE and do all changes in Eclipse, test in the sandbox, and then use the IDE to push to production.  I do this no matter how small the change is.

Here are the docs on Eclipse IDE for Salesforce: https://developer.salesforce.com/page/Force.com_IDE
Kunal Sharma 11Kunal Sharma 11

I have tested this in sandbox and it works. How in eclipse do I update the code to production?