tahir
(tahir)
November 22, 2021, 1:13pm
1
please visit this issue for more details
opened 07:58AM - 19 Nov 21 UTC
i am using monday.sdk.js for the very first time and as per documentations i can… get boardViewId and boardId from monday.get("context") but this is not working in my case.
**the format i am getting is**
```
boardIds: [11111111]
editMode: true
instanceId: -1
instanceType: "board_view"
itemIds: undefined
region: "use1"
theme: "light"
user: {id: '1111111', isAdmin: false, isGuest: false, isViewOnly: false}
viewMode: "fullscreen"
```
**implementations**
```
this.mondaySdk.get('context')
.then(async context => {
this.boardConstants.boardId = context.data.boardId;
this.boardConstants.viewId = context.data.boardViewId;
await this.initQuery(this.boardConstants.boardId);
})
.catch(error => { throw new Error(error); });
```
i am using monday.sdk.js for the very first time and as per documentations i can get boardViewId and boardId from monday.get(“context”) but this is not working in my case.