Find your content:

Search form

You are here

Deploying apex class and visualforce page


I have an apex class (custom controller) and a VF page. Apex class uses certain standard objects for some manipulation and VF page renders properties found inside controller. Now my question is what are the ways to deploy apex class and VF page to the production? Do I also need to deploy standard object used in controller along with class and page?

Attribution to: doga

Possible Suggestion/Solution #1

There are several ways to deploy to produtction, making the assumption that you're working on a sandbox and new to deployment I'd encourage you to first try making use of change sets.

First you'll have to configure the deployment connection on both your production and sandbox org.

Setup> App Setup > Deploy > Deployment connections

Once that is done you can make and outbound change set on your sandbox

Setup> App Setup > Deploy > Outbound Change Sets

Once you've added your Visualforce page and apex class(es) click the add/View dependencies button and you'll see that it will list metadata such as the custom object you're using. Once you upload your change set a target organisation you'll be able to validate and deploy it there. Your customizations only become active when they are succesfully deployed. Keep in mind that removing the change set, will not remove the deployed metadata.

Attribution to: Samuel De Rycke

Possible Suggestion/Solution #2

If you are using IDE then using IDE you can migrate your changes to production. As par my knowledge you dont have to migrate the standard objects. These will automatically be there on production.

Attribution to: Vinod Tomar
This content is remixed from stackoverflow or stackexchange. Please visit

My Block Status

My Block Content