> ## 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.

# packageDownload

> This operation downloads the latest migration package from a source CPQ environment based on package name. A zip file with the same name of the packag

This operation downloads the latest migration package from a source CPQ environment based on package name. A zip file with the same name of the package is saved to the artifacts directory.

# 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>Oracle CPQ Account</td><td>`FDCPQ_CLOUD_ACCOUNT_CODE`</td><td>No\*</td><td>The Oracle CPQ account with all the required properties like instance URL, Username, and Password.The account will be likely be different for each CPQ environment.</td></tr></tbody></table>

\*Oracle CPQ Account will be required on either the input or Target. If a value is set on both then, the input will take precedence.

# 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>Oracle CPQ Account</td><td>`FDCPQ_INP_CLOUD_ACCOUNT_CODE`</td><td>No\*</td><td>The Oracle CPQ account with all the required properties like instance URL, Username, and Password. User will require admin privileges to manage migration packages on CPQ cloud service.</td></tr><tr><td>API Timeout</td><td>`FDCPQ_INP_TIMEOUT`</td><td>No</td><td>Maximum amount of time (seconds) to wait for export migration process to complete after it is started. Defaults to 300 seconds (5 minutes).</td></tr><tr><td>Package Name</td><td>`FDCPQ_INP_PACKAGE_NAME`</td><td>Yes</td><td>Name of the migration package to download.</td></tr><tr><td>Exclude Dependencies</td><td>`FDCPQ_INP_EXCLUDE_DEPENDENCIES`</td><td>No</td><td>Optionally exclude dependent packages in the export file. Value of false (default value) includes the dependent packages.</td></tr></tbody></table>

# Outputs

<table><colgroup><col /><col /></colgroup><tbody><tr><th>**Output Name**</th><th>**Description**</th></tr><tr><td>`FDCPQ_OUT_TARGET_FILE_PATH`</td><td>The path to the downloaded migration package zip file.</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.

# Special Considerations

\*Oracle CPQ Account will be required on either the input or Target. If a value is set on both then, the input will take precedence.

## How to get migration package name?

Log into your Oracle CPQ Cloud Service

Navigate Administration Platform → Utilities → Migration

![Image](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12596413152.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=370da921ba6d7f3a125d0117254a7844)

From Migration Package page, you can select any package from the dropdown view or create a new package.

![Image](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12596413155.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=2b764af978bce184d594f12f3a093bca)

Click the informational icon to view Package Name. Copy this value to use where needed.

![Image](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12596413149.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=287d5eb7dd02144e06e04c3602300a91)
