# Import/Export

The Import/Export feature in Nected enables users to streamline their workflow and rule management by allowing them to import and export configurations as JSON files. This functionality supports efficient rule and workflow management, backup, and transfer between environments. In this documentation we’ll cover how to access and use this feature, detailing the steps and underlying processes involved.

{% embed url="<https://youtu.be/6EumEn17uwc>" %}

You can use this feature for both rules and workflow:

* For rules: From the main menu, select "Rules". And then on the rule listing page, you can access the Import and Export options. Also, if you open any rule then inside the rule editor, you can again access these features.
* For workflows: From the main menu, select "Workflows". And then on the workflow listing page and inside the workflow editor, you can access these features.

### Exporting Rules and Workflows

To export a rule or workflow from Nected, follow these detailed steps:

1. Navigate to the "Rules" or "Workflows" section from the main menu.
2. Identify the specific rule or workflow configurations you wish to export.
3. Click the "Export" button. This action will open an export options popup.<br>

   <figure><img src="/files/tc4maD9INl7VXGQHv0aq" alt=""><figcaption></figcaption></figure>
4. Then from the popup, click on the "Export" button again, and it will simply download the rule/workflow in JSON format.

### Importing Rules and Workflows

To import a rule or workflow in Nected, follow these detailed steps:

1. **Initiate Import**:
   * Navigate to the "Rules" or "Workflows" section from the main menu.
   * You can also initiate the import from inside their respective editors.
   * Click the "Import" button. This action will open a file selection popup.
2. **Select JSON File**:
   * In the file selection popup, click "Browse" to open the file explorer on your local device.
   * Select the JSON file that contains the rule or workflow you want to import.
   * Click "Open" to upload the file to the Nected platform.
3. **Validation Process**:
   * A validation pop-up window will appear, showing the progress of the file validation.
   * Nected will validate the JSON file to ensure it conforms to the required schema and integrity checks.
   * If the file is valid, you can simply click on "Next" to continue to the next step i.e. handling the dependencies.
   * If there are errors, an error message will detail the issues encountered during the validation process. These might include schema mismatches, missing required fields, or other structural issues in the JSON file.<br>

     <figure><img src="/files/kFKYvLzeeDFziJOW5k9N" alt=""><figcaption></figcaption></figure>
4. **Dependency Handling**:
   * After the file has been imported successfully, a pop-up window will appear detailing these dependencies. According to the presence of the dependencies that the rule/workflow is using it will show you some options.
   * You will be prompted to handle each dependency with the following options:
     * **Replace**: This option will overwrite the existing dependency with the new one from the import file.
     * **Use Existing**: This option will retain the existing dependency and use it instead of importing a new one.
     * **Create**: This option will create a new instance of the dependency if it does not already exist.
   * Make your selections for each dependency. For instance:
     * For an existing decision table, you might choose to "Replace" or "Use Existing".
     * For a database connection, you might decide to "Use Existing" or "Create" a new one.
   * After making your selections, click "**Continue**" to proceed.<br>

     <figure><img src="/files/JFuQkoGG9Ywcxy8WGKfj" alt=""><figcaption></figcaption></figure>
5. **Completion**:

   * Upon successful validation, the rules or workflows will be imported into the Nected platform.
   * The imported rules or workflows will become visible in their respective sections.
   * A final confirmation pop-up will display, confirming the successful import. This ensures that the imported elements are now part of your Nected environment and ready for use. Click on "**Continue**" again and it will redirect to the newly imported rule/workflow editor page.

   <figure><img src="/files/VDwuz7McrRGDVhdDFDui" alt=""><figcaption></figcaption></figure>

These steps ensure that users can effectively import and export rules and workflows in Nected, handling dependencies and validations smoothly, and maintaining a robust configuration management process.

{% hint style="info" %}
While importing or exporting a rule or workflow, keep in mind that you can import or export the dependencies (connectors, datasets, and APIs) seamlessly, but without the credentials. We don't share the credentials. This is to maintain security and data integrity.
{% endhint %}

### Conclusion

The Import/Export feature in Nected streamlines the management of rules and workflows, making it easier for users to handle complex configurations efficiently. By following this detailed guide, users can leverage the full potential of the Import/Export functionality, ensuring smooth operation and consistent management of their rules and workflows. This feature not only enhances productivity but also ensures that configurations are easily transferable and backed up, contributing to a robust and flexible development environment.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nected.ai/nected-docs/audit/import-export.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
