Pages

Saturday 29 October 2011

How to deploy any trigger from sandbox to Production ??

Hi All ,

This is my first blog. So I am starting my journey with a simple topic.

I have seen multiple times that new developers face some problem  in deployment of their code from sandbox to Production. I believe, this solution will work for those guys.

In order to deploy a trigger from sandbox to production, you need to take care of some points :

  1. At first I would like to request you all that before going for any deployment, make sure that there is no test failure or less than 75% code coverage in Production Instance. Because when we deploy any thing from sandbox to Production, "Run All Test" is performed automatically in Production. If there is any issue in Production then it will not let you deploy your new code.
  2. If you are deploying any trigger in Production, then you must write a test class for that trigger with no Test failure and more than 75% code coverage.
  3. Create deployment connection in sandbox.
  4. Create Outbound change set in Sandbox and add your trigger and its associated test class in the change set.
  5. Create Inbound change set in Production.
  6. Add Change set components in Sandbox.
  7. Upload the change set.
  8. You can validate the change set in Production.
  9. Finally deploy the change set in Production.
I hope this will help new comers to deploy their development work.

Please let me know if you have any questions or need more clarification. Even I am open for criticism .

Cheers,
Niket

1 comment:

  1. that was only one way that you have written about.
    What about the other ways of deploying your code?
    btw, good job with the "live traffic feed"


    ReplyDelete