Sunday, February 27, 2011

Ways to deploy Apex to a Sandbox org

The greatness of working on the Force.com platform is that it allows you to work on different environments. This means you can create your environment for Testing, a separate one for Training, and separate ones for Development and Production. A Developer usually works on the Developer org or the Sandbox org.

In this blog post, I'm going to point out the different ways through which deploy Apex code to a Sandbox Organization from your Force.com IDE (i.e. your local environment in Eclipse).

The first way is to use the Force.com Component Deployment Wizard. This allows developers to select only the Metadata components that need to be deployed, on the Sandbox org. Checkout this link for more details: http://wiki.developerforce.com/index.php/Deploy_Force.com_Applications_Faster

The second way is to use the deploy() metadata API call. This method allows moving metadata (XML files) from the local system to the Salesforce organization. Checkout this link for more details: http://www.salesforce.com/us/developer/docs/api_meta/Content/file_based.htm

Basically, this command can be executed in a console window. On a similar note, the retrieve() API call is used to pull data from the Salesforce org to the local environment.

Happy reading.

 









No comments:

Post a Comment