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

# exportLibrary

> Exports a specified Library from the given OIC instance. When the Project is set up like and the Workflow is set up like exports as shown below. Note

Exports a specified Library from the given OIC instance.

When the Project is set up like

![image-20250508-152217.png](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12596416019.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=5d6f4f80380ef582e62284e20e039a7d)

and the Workflow is set up like

![image-20250508-152200.png](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12596416016.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=1848ac9c0f5a80242cad8b258606e9db)

exports as shown below. Note that you can use absolute path in Export Folder to export in a folder other than artifacts (FD\_ARTIFACTS\_DIR).

![image-20250508-152132.png](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12596416022.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=1a864946a460fba75bcc7d4c0c425c84)

> [!NOTE]
>
> Either **FDOIC\_CLOUD\_ACCOUNT\_CODE** Target property value or **FDOIC\_INP\_CLOUD\_ACCOUNT\_CODE** plugin input value should exist. When both exists, plugin input value will take precedence. See [Creating/Editing a Cloud Account and Provider](https://docs.flexagon.com/flexdeploy-11-0-documentation/flexdeploy-users-guide/integrations/cloud-account-and-provider.md) for details on how to setup Cloud Account for OIC.

# 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>OIC Account</td><td>`FDOIC_CLOUD_ACCOUNT_CODE`</td><td>No</td><td>The OIC account with all the required properties like Base URI, Username and Password for running OIC Instance.</td></tr></tbody></table>

# Project 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>Library Identifier</td><td>`FDOIC_LIBRARY_IDENTIFIER`</td><td>Yes</td><td>Library Identifier (Code) to export.  </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>OIC Account</td><td>`FDOIC_INP_CLOUD_ACCOUNT_CODE`</td><td>No</td><td>The OIC account with all the required properties like Base URI, Username and Password for running OIC Instance.</td></tr><tr><td>OIC Library Version</td><td>`FDOIC_INP_LIBRARY_VERSION`</td><td>No</td><td>Optional Library Version to export.  Leave blank to export last updated version.  Version id should be of the format (01.02.0000)</td></tr><tr><td>Export Folder</td><td>`FDOIC_INP_EXPORT_SUBFOLDER`</td><td>No</td><td>Optional subfolder within artifacts directory for exporting libraries, or specify an absolute path. If you are using standard project for build and deploy using export and import operations, it is recommended to leave this blank. **Since 9.0.0.6**.e.g.: `FD_TEMP_DIR + "libraries”` (specified as Groovy Expression to allow for dynamic value for temporary directory)</td></tr></tbody></table>

# Outputs

<table><colgroup><col /><col /></colgroup><tbody><tr><th>**Output Name**</th><th>**Description**</th></tr><tr><td>`FDOIC_OUT_LIBRARY_VERSION`</td><td>The final Library version used for export.</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.
