+ Start a Discussion
SFDC_Dev_2009SFDC_Dev_2009 

Apex Trigger directly into Production

Is it possible to create Apex trigger directly into Production usin Force.com IDE Or Should it be created first in the Sandbox and then moved to Production?

 

Please advise.

Best Answer chosen by Admin (Salesforce Developers) 
aalbertaalbert
You can't create or edit apex code directly in Production environments. You have to develop the code in a Sandbox or Developer Edition org and deploy it to Production.

All Answers

mikefmikef
Sandbox first
SFDC_Dev_2009SFDC_Dev_2009

This is NPSP with no data in it.Still should i go for Sandbox?

aalbertaalbert
You can't create or edit apex code directly in Production environments. You have to develop the code in a Sandbox or Developer Edition org and deploy it to Production.
This was selected as the best answer
SFDC_Dev_2009SFDC_Dev_2009

Thanks for the reply Mike.

 

I will follow it.

ShamilShamil

aalbert,

 

Until now I was also thinking [and saw the behavior many times] that Apex classes cannot be edited in production. However, today I was actually able to edit apex classes directly in Production through the Force.com IDE. Did you notice the same behavior?