Skip to main content

Not getting all Workspaces via API

  • June 27, 2022
  • 2 replies
  • 1385 views

Hi,

I’m using a query that used to work, but recently it stopped providing expected results

It gets a list of all the workspaces on my Monday.com instance

{“query”: “query {boards {workspace {id name}}}”}

This now provides a list of some of the workspaces, but some are repeated:

{

  • "data":{
    • "boards":[
      1. {
      • "workspace":{
        • "id":111111,
        • "name":"Workspace1"}},
      1. {
      • "workspace":{
        • "id":111111,
        • "name":"Workspace1"}},
      1. {
      • "workspace":{
        • "id":111111,
        • "name":"Workspace1"}},
      1. {
      • "workspace":{
        • "id":444444,
        • "name":"Workspace4"}},
      1. {
      • "workspace":{
        • "id":2222222,
        • "name":"Workspace2"}},
      1. {
      • "workspace":{
        • "id":2222222,
        • "name":"Workspace2"}},
      1. {
      • "workspace":{
        • "id":2222222,
        • "name":"Workspace2"}},
      1. {
      • "workspace":{
        • "id":2222222,
        • "name":"Workspace2"}},
      1. {
      • "workspace":{
        • "id":2222222,
        • "name":"Workspace2"}},
      1. {
      • "workspace":{
        • "id":2222222,
        • "name":"Workspace2"}},
      1. {
      • "workspace":{
        • "id":2222222,
        • "name":"Workspace2"}},
      1. {
      • "workspace":{
        • "id":111111,
        • "name":"Workspace1"}},
      1. {
      • "workspace":{
        • "id":2222222,
        • "name":"Workspace2"}},
      1. {
      • "workspace":{
        • "id":2222222,
        • "name":"Workspace2"}},
      1. {
      • "workspace":{
        • "id":2222222,
        • "name":"Workspace2"}},
      1. {
      • "workspace":{
        • "id":2222222,
        • "name":"Workspace2"}},
      1. {
      • "workspace":{
        • "id":444444,
        • "name":"Workspace4"}},
      1. {
      • "workspace":{
        • "id":333333,
        • "name":"Workspace3"}},
      1. {
      • "workspace":{
        • "id":2222222,
        • "name":"Workspace2"}},
      1. {
      • "workspace":{
        • "id":111111,
        • "name":"Workspace1"}},
      1. {
      • "workspace":{
        • "id":333333,
        • "name":"Workspace3"}},
      1. {
      • "workspace":{
        • "id":333333,
        • "name":"Workspace3"}},
      1. {
      • "workspace":{
        • "id":333333,
        • "name":"Workspace3"}},
      1. {
      • "workspace":{
        • "id":333333,
        • "name":"Workspace3"}},
      1. {
      • "workspace":{
        • "id":333333,
        • "name":"Workspace3"}}]},
  • "account_id":2121212

}

Any ideas? Thanks!

This topic has been closed for replies.

2 replies

basdebruin
  • Community Expert
  • June 28, 2022

hi @Cwedl

You are querying all your boards in the account and as there are more board in the same workspace you get that information duplicated. The app stops at 25 boards as that is the default limit. You have to specify a higher limit to get this information form all your boards.

Unfortunately there is no GraphQL available for querying your workspaces.


  • July 5, 2022

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.