# table. getViewById
Get the view instance [IWidgetView](https://open.feishu.cn/document/uAjLw4CM/uYjL24iN/base-extensions/base-view-extensions/data-type/iwidgetview) according to the id.

## 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)

## input
```
getViewById(viewId)
```

name | Data Type | Required | Description
---|---|---|---
viewId | string | is | view id

## output
Promise view instance [IWidgetView](https://open.feishu.cn/document/uAjLw4CM/uYjL24iN/base-extensions/base-view-extensions/data-type/iwidgetview).

## sample code

```js
const viewMetaList = await table.getViewMetaList();// Get the meta information list of the data table view

const res = await table.getViewById(viewMetaList[0].id);
```