# view. getName
Get the view name.

## Permission Requirements
**Notice**：Enable any of the following permissions
View, comment, edit and manage multidimensional tables(bitable:app)
View, comment and export multidimensional tables(bitable:app:readonly)

## sample code
### call example

```js
const selection = await bitable. base. getSelection();
const table = await bitable.base.getTableById(selection.tableId);
const viewMetaList = await table. getViewMetaList();
const view = await table.getViewById(viewMetaList[0].id);

const res = await view.getName(); // 'table'
```

### return example
res:
```
'sheet'
```