Newer Version Available

This content describes an older version of this product. View Latest

InstalledPackage

Represents a package to be installed or uninstalled. Deploying a newer version of a currently installed package upgrades the package.

You can’t deploy a package along with other metadata types. Hence, InstalledPackage must be the only metadata type specified in the manifest file.

Note

File Suffix and Directory Location

The package is specified in the installedPackages directory, in a file named after the package’s namespace prefix. The file extension is .installedPackage.

Version

InstalledPackage is available in API version 28.0 and later.

Fields

Field Name Field Type Description
versionNumber string The version number of the package. This has the format majorNumber.minorNumber.patchNumber (for example, 2.1.3). 
password string An optional field specifying the package password.

Declarative Metadata Sample Definition

This specifies a sample package to be installed or uninstalled.

1<?xml version="1.0" encoding="UTF-8"?>
2  <InstalledPackage xmlns="http://soap.sforce.com/2006/04/metadata">
3    <versionNumber>1.0</versionNumber>
4    <password>optional_password</password>
5  </InstalledPackage>