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

# exportConnections

> Export connection metadata and any attachments from the given OIC instance. Each connection found will be exported under its own connection folder wit

Export connection metadata and any attachments from the given OIC instance.  Each connection found will be exported under its own connection folder with its contents consisting of a 'connections.json' file as well as attachments. This operation is designed to be used with our [browser extension](https://docs.flexagon.com/flexdeploy-9-0-documentation/flexdeploy-browser-extension.md), which collects a list of IDs from the OIC Integrations page and triggers a webhook. The webhook then initiates a utility workflow that exports the projects and commits the resulting files to your source control management (SCM) system.

Following plugin operation in workflow

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

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-151752.png](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12596415911.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=717a66643ed7152409bf62cbbfef3b4a)

> [!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-9-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>Connection List</td><td>`FDOIC_CONNECTION_LIST`</td><td>No</td><td>CSV list of connection ids to export.  Leave blank to export all non-project connections found on the server.</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 Connection List</td><td>`FDOIC_INP_CONNECTION_LIST`</td><td>No</td><td>Optional List of non-project Connection Ids to export. This input should only be used in a utility fashion, otherwise the Connection List project property should be used.</td></tr><tr><td>Export Folder</td><td>`FDOIC_INP_EXPORT_SUBFOLDER`</td><td>No</td><td>Optional subfolder within artifacts directory for exporting connections, 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 + "connections”` (specified as Groovy Expression to allow for dynamic value for temporary directory)</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

## Attachments

This operation will also export any relevant attachments for the connections and save them in the artifacts repository.

> [!NOTE]
>
> ### Example Artifacts Dir After Export
>
> 12343/2312/artifacts/HR\_SOAP\_CONNECTION/connections.json
>
> 12343/2312/artifacts/HR\_SOAP\_CONNECTION/attachments/HR\_SOAP\_CONNECTION/targetWSDLURL/hr.wsdl
>
> 12343/2312/artifacts/MY\_REST\_ENDPOINT\_INTERFAC/connections.json
