Deploying Apex to a Sandbox Organization

Sandboxes create copies of your organization in separate environments. Use them for development, testing, and training, without compromising the data and applications in your Salesforce production organization. Sandboxes are isolated from your Salesforce production organization, so operations that you perform in your sandboxes don’t affect your Salesforce production organization, and conversely.

To deploy Apex from a local project in the Force.com IDE to a Salesforce organization, use the Force.com Component Deployment Wizard. For more information about the Force.com IDE, see https://developer.salesforce.com/page/Force.com_IDE.

You can also use the deploy() Metadata API call to deploy your Apex from a developer organization to a sandbox organization.

A useful API call is runTests(). In a development or sandbox organization, you can run the unit tests for a specific class, a list of classes, or a namespace.

Salesforce includes a Force.com Migration Tool that allows you to issue these commands in a console window, or your can implement your own deployment code.

Note

Note

The Force.com IDE and the Force.com Migration Tool are free resources provided by Salesforce to support its users and partners, but aren't considered part of our services for purposes of the Salesforce Master Subscription Agreement.

For more information, see Using the Force.com Migration Tool and Deploying Apex.

Previous
Next