---
url: /process-functions/script-modelid.md
description: Returns the id of the model the process is in.
---

# script.modelId

Returns the id of the model the process is in.

```js
script.modelId()
```

## Returns

The model's id.

## Examples

```js
const modelId = script.modelId();
```

## Related

* [script.modelName](/process-functions/script-modelname)
