The Deploy Zip File dialog deploys metadata packaged in a standard ZIP file to the destination Salesforce org. Deploy Zip File separates building a deployment from running the deployment: you can build the ZIP file during business hours and deploy the file later, for example during an off-hours maintenance window. You can also deploy ZIP files built by other developer tools, or check a vendor package against a new org before installing the package.
Video
Opening Deploy Zip File
Right-click a deployment arrow on the desktop and choose Deploy Zip File from the packages options, or open the dialog from the Options Menu. The destination of the arrow must be a Salesforce org; a ZIP file cannot be deployed to a Developer Project.
Building a ZIP file
In the Deploy Metadata dialog, you can choose to create a ZIP file instead of deploying immediately, and save the file wherever you like. ZIP files created by other tools in the standard Metadata API format work as well.
Deploying the ZIP file
- Click Browse for ZIP File and select the file.
- Choose the deployment type:
- Check For Errors Without Making Changes: A validating deployment. Salesforce checks the package and reports errors, but nothing in the org changes.
- Roll Back All Changes If There Is An Error: A transactional deployment. If any asset fails, the entire deployment is rolled back. Use this option for production.
- Change Everything Possible And Ignore Errors: A partial deployment. Assets that cause errors are rolled back and the other assets deploy, unless the errors cascade.
- Optionally check Ignore Warnings so that warning messages do not stop the deployment.
- Optionally check Run Selected Tests and add the names of the Apex tests to run during the deployment.
- Add a Job Name, Search Tags (up to 200 characters), and Deploy Comments (up to 30,000 characters). These are saved in the Snapshot Deployment History Report so the deployment is easy to find and audit later.
- Click Deploy ZIP File.
A status window shows progress, including component and test counts. Hold down the Escape key to cancel the deployment. When the deployment finishes, the results text shows what Salesforce returned.
Scheduling the deployment
Use the Schedule ZIP File tab to run the deployment at a set time, such as a weekend release. Keep Snapshot in Runtime Mode so the scheduled deployment runs.