+ Start a Discussion
Traveller MadeTraveller Made 

How can I apply a Trigger and an Apex Class I created in a sandbox to my production ?

I created with a lot of help a trigger with its Apex Class in a sandbox. Now I would like to have it in my production to really use it. 
How can I do that ? 

Please help me, I spend a lot of time creating these, I cannot have done it for nothing. Thank you in advance.
Traveller MadeTraveller Made
User-added image
Naveen IlaNaveen Ila

Do you want to deploy this? If so, you can do the same using Change set. However you need to 75% code coverage for the same. 

Traveller MadeTraveller Made
I don't understand, what should I do ?
Yes I want my trigger and my Apex Class created in the sandbox to be in my production now.
Naveen IlaNaveen Ila
Inorder to deploy we can do in following ways: 
1) Using Change Sets
            https://help.salesforce.com/articleView?id=000171224&type=1
2) Using ANT tool 

      https://help.salesforce.com/articleView?id=code_tools_ant_using.htm&type=5


For you I can suggest the first option to deploy the things. Which is an Out of box functionality given by Salesforce. 
 
Traveller MadeTraveller Made
Ok thank you I did it but the code coverage problem showed like you said.
How can I fix it ? 
User-added image