In Salesforce, only Developer Edition, Sandbox, and Trial organizations allow you to create, edit, or delete Apex classes and triggers directly in the Salesforce user interface. Enterprise Edition and Unlimited Edition production organizations can execute Apex and view Apex code in the UI, but cannot modify it directly through the interface. To deploy new or updated Apex to a production org, you must develop and test the code in a Developer Edition, Sandbox, or Trial org first, then deploy it using a supported deployment method.
Enterprise Edition and Unlimited Edition production orgs restrict direct Apex editing in the UI to protect production environments from untested code changes. Apex modifications must be developed in a non-production environment (Developer Edition, Sandbox, or Trial org) with appropriate test coverage — at least 1% for triggers and 75% for classes — before being deployed to production. A user with the Author Apex permission must perform the deployment.
You can deploy Apex from a Developer Edition or Sandbox org to a production org using any of the following methods:
compileAndTest() or deploy() Metadata API methods
000385067

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.