Skip to main content

How to pull custom Dropdown from API

  • January 25, 2024
  • 3 replies
  • 240 views

  • Participating Frequently

Our items have a custom Dropdown field. I am able to pull the field if I pull the item without issues. Is there a way to pull the all the possible values of a custom Dropdown from the API?

3 replies

  • Participating Frequently
  • January 25, 2024

The settings_str in the following query returns a JSON serialized string, that contains the configuration and possible labels/indexes. Just deserialize it and you can access the labels and index mapping.

{
  boards(ids: "123123") {
    columns(ids: "dropdown") {
      settings_str
    }
  }
}
{
  "data": {
    "boards": [
      {
        "columns": [
          {
            "settings_str": "{\\"limit_select\\":false,\\"hide_footer\\":false,\\"labels\\":[{\\"id\\":1,\\"name\\":\\"Test\\"},{\\"id\\":2,\\"name\\":\\"Test 2\\"},{\\"id\\":3,\\"name\\":\\"Test 3\\"}],\\"deactivated_labels\\":[]}"
          }
        ]
      }
    ]
  },
  "account_id": 5555555
}

  • Author
  • Participating Frequently
  • February 1, 2024

This worked, thank you for the response.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • February 4, 2024

Thank you @anon29275264 for the help!!