BoardDocBlocks
Retrieves content blocks from documents associated with boards. Requires a DocId or DocObjectId filter to narrow results.
Table-Specific Information
SELECT
The provider uses the Monday API to process some of the filters. The provider processes other filters client-side within the provider.
Note: This table requires specifying DocId to retrieve data.
- DocId supports the '=','IN' comparison operators.
SELECT * FROM BoardDocBlocks WHERE DocId = '9014425'
SELECT * FROM BoardDocBlocks WHERE DocId IN ('9014425','9014490')
SELECT * FROM BoardDocBlocks WHERE DocId IN (SELECT ColumnDocId FROM Board)
INSERT
The following inputs can be used in INSERT statements:
ParentBlockId, DocId, Content, Type, AfterBlockId
INSERT INTO BoardDocBlocks (DocId,Type,Content,AfterBlockId) VALUES ('9180448','code','{"alignment":"left","direction":"ltr","deltaFormat":[{"insert":"Test"}]}','53ab947f-226f-49f5-8d43-1021f9f36431')
UPDATE
The following inputs can be used in UPDATE statements:
Content
UPDATE BoardDocBlocks SET Content='{"alignment":"left","direction":"ltr","deltaFormat":[{"insert":"NewValue"}]}' WHERE Id = '9b24043b-6ea9-46b0-9f0a-1ec226f12d21'
DELETE
You can delete entries by specifying the Id.
DELETE FROM BoardDocBlocks WHERE Id = '9b24043b-6ea9-46b0-9f0a-1ec226f12d21'
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | False |
The unique identifier for the block, used to distinguish it from other blocks in the document. | |
| ParentBlockId | String | False |
The unique identifier of the parent block, establishing hierarchical relationships between blocks. | |
| DocId | String | False |
BoardDocs.Id |
The unique identifier of the document that contains this block. |
| CreatedById | String | False |
Users.Id |
The unique identifier of the user who created the block. |
| Position | Double | False |
The position of the block within the document, used to determine its order. | |
| Content | String | False |
The content of the block, which could include text, media, or other data. | |
| Type | String | False |
Specifies the type of content stored in the block, such as text, image, or table. The allowed values are board, bulleted_list, check_list, code, divider, image, large_title, layout, medium_title, normal_text, notice_box, numbered_list, quote, small_title, table, video, widget, page_break. | |
| CreatedAt | Date | False |
The date when the block was initially created. | |
| UpdatedAt | Date | False |
The date when the block was last updated. |
Pseudo-Columns
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
| Name | Type | Description |
| AfterBlockId | String |
Specifies the unique identifier of the block after which this block should be inserted. If not provided, the block will be inserted at the beginning of the document. |