function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

New Apex Class

Hi Experts!

Do anyone knows how to create Apex Class on production?

I have tried to create apex Class directly from production but donot have the button to do create new. So i decided to use my IDE but after saving to server the code donot appear.

Any advice on why this is happening?


You can't create apex class in production. You need to create it in developer or sand box then you need to move to production.
I have already created it on sandbox and trying to move it onto production. Do you know the steps involved?
You need to migrate your code to production using one or both of these methods.

1- use the IDE Deploy to Server feature.
You can find this feature when you right click the Project, select -> Deploy to Server.

2- use the ant toolkit if you are not using the IDE, and use ant command line tool to deploy your code.
You can get the ant toolkit from with in your org under the Develop -> tools link in setup.

This link touches on the deploy feature of the IDE.