Newer Version Available
RetrieveRequest
The RetrieveRequest parameter specified on a
retrieve() call encapsulates options for determining which packages or files are
retrieved.
The RetrieveRequest object 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
don't 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 isn't specified in package.xml, the version in this field is used. |
| packageNames | string[] | A list of package names to be retrieved. If you're retrieving only unpackaged components, don't 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 aren't in a package. |