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

# deployComponent

> Deploys a Boomi component or promotes an existing deployment to a selected environment. If no previous active deployment for the given details is foun

Deploys a Boomi component or promotes an existing deployment to a selected environment. If no previous active deployment for the given details is found or no deployment ID is provided by the user in the buildComponent operation, then the deployment is performed for the component and environment provided in the buildComponent operation. In a case where an active deployment is found, the deployment found is promoted to the target environment selected by the user. In a case where the `FDBOOMI_INP_ENVIRONMENT_EXTENSIONS_JSON_PATH` input is set, then the environment extension file is selected from the list of build artifacts and the update is made through the Boomi API.

The build artifact does not contain the version of the process.

If a packaged component is being deployed, the exact version of the packaged component which the id correlates to will be deployed. See the image below for how to locate this id.

If a componentId is used, then during the deployment, the latest version of the component is packaged up. This could result in different versions of the code being deployed in different environments with the same build artifact, so it is not recommended. See the next screen shot for how to locate this id.

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

# 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>Boomi Environment ID</td><td>`FDBOOMI_ENVIRONMENT_ID`</td><td>Yes</td><td>ID of the Boomi Environment.</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>Deployment Notes</td><td>`FDBOOMI_INP_DEPLOYMENT_NOTES`</td><td>No</td><td>Sets a Deployment message\
Defaults to "Component deployed using FlexDeploy" In case of a deployment promotion, details of the source and target environments are added to the message as well by the AtomSphere platform.Groovy expressions can be used to make the value provided here dynamic.**Include Project Version and Execution Timestamp in Deployment Notes**<pre>FD\_PROJECT\_VERSION + " deployed by FlexDeploy on " + Instant.now()</pre></td></tr><tr><td>Environment Extensions File Path</td><td>`FDBOOMI_INP_ENVIRONMENT_EXTENSIONS_JSON_PATH`</td><td>No</td><td>Location of the Environment Extensions JSON file</td></tr></tbody></table>

# Artifacts

This operation consumes artifacts from 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.
