---
url: /process-functions/cube-getname.md
description: Returns the name of a cube.
---

# cube.getName

Returns the name of a cube.

```js
cube.getName(cubeId)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `cubeId` | `string` | The cube's id. |

## Returns

The cube's name, or `"ERROR: Cube not found."` when the id isn't recognised.

## Examples

```js
const cubeName = cube.getName("123");
```
