> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# downloadPackage

> Downloads a named package from a Salesforce org or sandbox. The named package must exist in the source org or sandbox in order to be downloaded. Targe

Downloads a named package from a Salesforce org or sandbox.

The named package must exist in the source org or sandbox in order to be downloaded.

# Target Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Salesforce Account Code</td><td>`FDSF_ACCOUNT_CODE`</td><td>Yes</td><td>Salesforce Account with all the required properties like User, Password, Client Id, etc.</td></tr><tr><td>Salesforce API Version</td><td>`FDSF_API_VERSION`</td><td>No</td><td>The Salesforce API version to target.Specifies the Salesforce API version to use(e.g., 64.0, 63.0)..This property is optional. If left blank, FlexDeploy will automatically detect and use the latest supported API version from your Salesforce Org at runtime using a REST API call - up to the default version from FlexDeploy and the maximum supported by your Salesforce organization.See [FlexDeploy Salesforce Version Matrix](https://flexagon.atlassian.net/wiki/spaces/SHAR/pages/12076777480/FlexDeploy+Salesforce+Version+Matrix) for more information.</td></tr><tr><td>Salesforce Cli Path</td><td>`FDSF_CLI_PATH`</td><td>No</td><td>The Salesforce CLI Path. (Eg: C:\Program Files\Salesforce CLI\bin)</td></tr></tbody></table>

# Inputs

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Package Name(s)</td><td>`FDSF_PACKAGE_NAME`</td><td>Yes</td><td>Comma-Separated Package Names to download</td></tr></tbody></table>

# Artifacts

This operation produces artifacts that will be stored in the artifacts repository.

# Endpoint Selection

This operation will select all available endpoints associated to the Target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.
