+ Start a Discussion
AlecSAlecS 

Move trigger from sandbox to production

I just finished writing and testing few triggers in sandbox. How do I move them to production system?

 

I get an error message:

Entity_Is_Locked

 
Best Answer chosen by Admin (Salesforce Developers) 
Parth_SevakParth_Sevak
u didn't specify when error occured.
But looks you have already tested trigger and there is no error.
so you can move with the help of change set.
In sand box: Create outbound change set. add this trigger in it.
then
from Production org : in Inbound change set : you will see change set created in sandbox.
then just validate it and deploy.
change set takes some time to appear in production org. so dnt worry.
hope this will help you.
thanks!

All Answers

Parth_SevakParth_Sevak
u didn't specify when error occured.
But looks you have already tested trigger and there is no error.
so you can move with the help of change set.
In sand box: Create outbound change set. add this trigger in it.
then
from Production org : in Inbound change set : you will see change set created in sandbox.
then just validate it and deploy.
change set takes some time to appear in production org. so dnt worry.
hope this will help you.
thanks!
This was selected as the best answer
Vinit_KumarVinit_Kumar

To add to Parth's answer you can also use either Force.com IDE or ANT migration tool.Please go through the below link for the same:-

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_deploying_ide.htm

 

http://wiki.developerforce.com/page/Migration_Tool_Guide