Skip to main content

Numbers are ignored for dropdown

  • May 16, 2022
  • 4 replies
  • 1012 views

  • Participating Frequently

Hi everybody,
It seems that I cannot insert numbers to dropdown programmatically.
It works when I insert them from UI. Of course, I convert number to string before calling mutation “create_item”. So I add “ID_” before number and it works.
Examles:
“100” - doesn’t insert
“ID_100” - inserts
I think it’s a bug.
Is there any workaround for this?

Thanks, Sergey.

4 replies

kolaai
Forum|alt.badge.img
  • monday.com Partner
  • May 16, 2022

Hello @snb,

Try sending the number as a string
Example

{boardId: 123, itemId: 123, columnValues: "{"dropdown":{"labels":["2"]}}"}

where dropdown is the Dropdown column ID and 2 is the value you are sending


  • Author
  • Participating Frequently
  • May 17, 2022

I tried it, it doesn’t works too ((


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • May 24, 2022

Hello @snb!

It looks like this might be an issue on your end.

I have opened a report so that our team can take a look into it.

I will circle back to you when I have news about it 🙂

Cheers,
Matias


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • June 9, 2022

Hello @snb and @kolaai!

You can use a mutation like this one for this:

mutation {
  change_multiple_column_values(board_id: 2773111111, item_id: 2773111111, column_values: "{\\"dropdown\\":{\\"labels\\":[\\"123\\"]}}", create_labels_if_missing: true) {
    id
  }
}

Cheers,
Matias