Skip to main content

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?

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
}

This worked, thank you for the response.


Thank you @anon29275264 for the help!!