Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Deploy Components to Production
- A Salesforce account in a sandbox Performance, Unlimited, or Enterprise Edition organization.
- The HelloWorldTestClass Apex test class.
- A deployment connection between the sandbox and production organizations that allows inbound change sets to be received by the production organization. See “Change Sets” in Salesforce Help.
- “Create and Upload Change Sets” user permission to create, edit, or upload outbound change sets.
This procedure doesn't apply to Developer organizations since change sets are available only in Performance, Unlimited, Enterprise, or Database.com Edition organizations. If you have a Developer Edition account, you can use other deployment methods. For more information, see Deploying Apex.
- From Setup, enter Outbound Changesets in the Quick Find box, then select Outbound Changesets.
- If a splash page appears, click Continue.
- In the Change Sets list, click New.
- Enter a name for your change set, for example, HelloWorldChangeSet, and optionally a description. Click Save.
- In the Change Set Components section, click Add.
- Select Apex Class from the component type dropdown list, then select the MyHelloWorld and the HelloWorldTestClass classes from the list and click Add to Change Set.
- To add the dependent components, click View/Add Dependencies.
- To select all components, select the top checkbox. Click Add To Change Set.
- In the Change Set Detail section of the change set page, click Upload.
- Select the target organization, in this case production, and click Upload.
-
After the change set upload completes, deploy it in your production
organization.
- Log in to your production organization.
- From Setup, enter Inbound Change Sets in the Quick Find box, then select Inbound Change Sets.
- If a splash page appears, click Continue.
- In the change sets awaiting deployment list, click your change set's name.
- Click Deploy.