Obtain board ID for the board block type

We are looking for an API to obtain board ID for the board block type.

Hello there @rkanumola,

What are you referring to when you say “board block type”? What block?

Are you referring to a doc block as shown here?

Hello @Matias.Monday ,

Sorry for the late reply.

For board block type we mean a document block having type as - board.

We are working on a feature to get the data related to block type - board. We need boardId to query the board related data

Our primary source of information is docs query.

As of now we don’t get the board id in the content response. if you could add the id of the board in the content then we will be able to query its data further and render it.

example query:

query {
  docs (object_ids: 1301317343, limit: 1) {
    id
    object_id
    blocks {
      id
      type
      content
    }
  }
}

Response:

{
  "data": {
    "docs": [
          {
            "id": "8e7f600c-253b-49ef-a846-32379a82f7b4",
            "type": "board",
            "content": "{\"type\":\"board\",\"width\":1257,\"height\":775,\"widgetId\":32489216,\"alignment\":\"center\",\"direction\":\"ltr\",\"didNewLayoutMigration\":true}"
          },
        ]
      }
    ]
  },
  "account_id": 17654548
}

Add id of the board inside content object

"content": "{\"type\":\"board\",\"width\":1257,\"height\":775,\"widgetId\":32489216,\"alignment\":\"center\",\"direction\":\"ltr\",\"didNewLayoutMigration\":true}"

cc: @rkanumola

Thank you @dksharma for the clear explanation and for the request!

For everyone else: you can vote for the request at the top left corner of this topic :smile:

Note:

  1. Impact of this feature request is that work docs export to PDF will include a snapshot of widget, boards and making it complete rather than exporting just a link to the board/ widget in the pdf doc.

  2. This is coming from the customers using native PDF export

  3. Improvements/ enhancements to existing exporting work docs to PDF with board & widget gaps plugged in

  4. Its our app’s core feature and all the teams using work docs who report to their leadership, as they are not on Monday or don’t have time to go through these reports on Monday instance.

  5. Make these docs more consumable in a meaningful way.

  6. Conversions/ ratings - its the starting point/ a step towards an almost complete export feature for all large enterprises. Our app is already better than the native and this will enhance customers to pay, use and rate it better

  7. All the users impacted with these requests are:

  8. Users exporting docs to PDF

  9. Users embedding their docs with widgets/ boards/ charts for reporting purposes