---
url: /process-functions/alias-create.md
description: Creates an alias within a dimension.
---

# alias.create

Creates an alias within a dimension.

```js
alias.create(dimensionName, aliasName)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `dimensionName` | `string` | The dimension's name. |
| `aliasName` | `string` | The alias's name. |

## Returns

An empty string when it succeeds, or an error message when it fails, such as when the dimension can't be found.

## Examples

```js
alias.create("Account", "No - Name");
```

```js
// Create an alias, then update the alias of an element
alias.create("Product", "Long Name");
alias.set("Product", "Long Name", "PW-100", "Premium Widget 100mm");
```

## Related

* [alias.createOrWipe](/process-functions/alias-createorwipe): creates an alias within a dimension if it doesn't exist, or wipes the data on the alias if it already exists.
* [alias.set](/process-functions/alias-set): updates the alias of a given element within the dimension.
