Newer Version Available

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

RetrieveRequest

The RetrieveRequest object specified in a retrieve() call consists of the following properties:

Name Type Description
apiVersion double Required. The API version for the retrieve request. The API version determines the fields retrieved for each metadata type. For example, an icon field was added to the CustomTab for API version 14.0. If you retrieve components for version 13.0 or earlier, the components will not include the icon field.

In API version 31.0 and later, the API version that’s specified in package.xml is used for the retrieve() call and overrides the version in the apiVersion field. If the version is not specified in package.xml, the version in this field is used.

Note

packageNames string[] A list of package names to be retrieved. If you are retrieving only unpackaged components, do not specify a name here. You can retrieve packaged and unpackaged components in the same retrieve.
singlePackage boolean Specifies whether only a single package is being retrieved (true) or not (false). If false, then more than one package is being retrieved.
specificFiles string[] A list of file names to be retrieved. If a value is specified for this property, packageNames must be set to null and singlePackage must be set to true.
unpackaged Package A list of components to retrieve that are not in a package.