Skip to main content

How to fetch data from a cell

  • April 1, 2024
  • 2 replies
  • 175 views

idoya

Hi guys, I need you to direct me to some quary or link to doc of how to fetch data from a cell, Ive got a monday board and need using Fetch/Axios to get data of some cell given another cell.
How can I do it in the best way?

In the past I used
let query = {items_by_column_values(board_id: XXXXX, column_id: "text", column_value: "${user.app_id}") { column_values(ids: [pm]) { text } } };

Now its not working anymore and I need another solution.

2 replies

dvdsmpsn
Forum|alt.badge.img+1
  • Participating Frequently
  • April 1, 2024

@idoya you’re using an old version of the api which no longer works.

You need to replace items_by_column_values with items_page_by_column_values.

The newer query syntax is something like this:

{
  items_page_by_column_values(
    board_id: "XXXXX", 
    columns: {
      column_id: "text"
      column_values: "${user.app_id}"
    }
  ) { 
    items  {
      column_values (ids:[ "yyy"]) {
        id
        text
      }
    }
    cursor
  } 
}

Have a go in the API Playground before you update your code.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • April 2, 2024

Thank you @dvdsmpsn for the help here!