I haven’t found any information in the API documentation about accessing widgets or using the widgetId in order to retrieve information about the embedded board.
Some context: I created a document and embedded a board in it by typing /board in the user interface, which causes the “Board & Widgets” pop up menu to appear, then selecting the “Board” option, then selecting a board from the “Choose Board” menu that appears.
I’m issuing a simple query to retrieve the blocks of a work document:
docs(ids: [${docId}]) {
blocks {
id
parent_block_id
created_at
created_by {
id
name
}
updated_at
position
type
content
}
}
where ${docId} is the id of a particular document that has a board embedded in it.
This works as expected and returns the document blocks. My issue is that the doc block that describes the embedded board only contains a widgetId as described in the original question. We need the id of the board.
Thank you for giving us more context. To clarify further, you state that the query works as expected but you want to retrieve the board ID using the widget ID or in general want to find a way to retrieve the board ID from this query?
The latter. I just need the board id(s) of the embedded board(s) in a doc. No need to go through the widgetId, I just mentioned it because it’s all I get at the moment.