Print this page

Why can't I create, edit or delete Apex triggers or classes in Salesforce?

Knowledge Article Number 000005267
Description

Why can't I create, edit or delete Apex triggers or classes in Salesforce?

Resolution

Only Developer Edition, Sandbox, and Trial organizations have the ability to create, edit, and delete Apex classes and triggers directly in the Salesforce CRM user interface. Unlimited Edition and Enterprise Edition production organizations can execute Apex and can view Apex in the user interface, but modifying Apex in the user interface is not allowed.

 

The Apex classes and triggers should first be written in a Developer Edition, Sandbox, or Trial organization along with the appropriate test methods that test at least 1% of triggers and 75% of classes. To deploy Apex into a production organization, a user with the Author Apex permission must deploy the triggers and classes using either the compileAndTest() or deploy() Metadata API methods which can be accessed with either the Apex Development Tool based on Apache ANT or the Force.com IDE based on Eclipse. 

 

Both of these tools are available by going to Setup | Develop | Tools. For more information about Apex, please see the Apex Developer's Guide at http://www.salesforce.com/us/developer/docs/apexcode/index.htm

 





promote demote