# Get

### Overview

The **Get Storage Component** retrieves a stored value from a specified storage location based on a given key.

### Usage

This component is used to look up values in a storage system using a unique key, enabling structured data retrieval within workflows.

#### Input Ports

| Port | Description                                                     |
| ---- | --------------------------------------------------------------- |
| `in` | Receives the key to fetch the corresponding value from storage. |

#### Output Ports

| Port       | Description                                  |
| ---------- | -------------------------------------------- |
| `out`      | Emits the retrieved value if the key exists. |
| `notFound` | Emits the key if no matching value is found. |

#### Properties

| Property  | Type     | Description                                                         |
| --------- | -------- | ------------------------------------------------------------------- |
| `storeId` | `string` | The ID of the storage space where the key lookup will be performed. |

#### Processing Logic

1. **Receives Lookup Key**: Accepts a key to find its corresponding value.
2. **Searches Storage**: Queries the specified `storeId` for the given key.
3. **Returns Results**:
   * If the key exists, outputs the value to `out`.
   * If no match is found, emits the key to `notFound`.

#### Output Data Schema

| Property    | Type     | Description                                   |
| ----------- | -------- | --------------------------------------------- |
| `key`       | `string` | The key of the retrieved item.                |
| `value`     | `string` | The value associated with the key.            |
| `createdAt` | `string` | The timestamp when the item was created.      |
| `updatedAt` | `string` | The timestamp when the item was last updated. |

### Notes

* **Key-Based Retrieval**: Fetches stored values based on unique keys.
* **Efficient Querying**: Enables quick access to stored data for automated workflows.
* **Supports Workflow Automation**: Useful for retrieving stored data dynamically in business processes.

This component is essential for workflows requiring structured retrieval of stored data using unique keys.
