How to update a cell icon

From the Monday UI its possible to update a cell value and add an Icon to it:
image
Is it possible to add/update this icon from API using change_simple_column_value() or the change_column_value()

1 Like

Hello there @itamar_biot and welcome to the community!

I hope you like it here :muscle:

When you just add the symbol in the UI, you can see the code for that symbol displayed in the column. For some column types that accept strings as format to update them like a text column, you can add that in the string like this:

mutation {
  change_simple_column_value(value: " #!g ", board_id: 1234567890, item_id: 1122334455, column_id: "text") {
    id
  }
}

But you won’t be able to add it directly on top of the already existing text.

So this is a workaround really. There is no method in our API to add symbols as you do in the UI.

Let me know if you have any other questions :slightly_smiling_face:

Cheers,
Matias

Yes, it’s possible.
It’s just a string. When you click on an icon you’ll see the corresponding text.

Screenshot 2023-01-30 at 14.48.42

If you update the column including that text, it will be displayed as an icon.

yep, seems to work on text cells but not on date cells.
Is that a limitation?

Ah, never knew about the possibility to set an icon for the date column, sorry.

Hello @itamar_biot,

Yes. For some column types that accept strings as format to update them like a text column, you can add that in the string. It is limited to specific column types.

Let me know if you have any other questions!

Cheers,
Matias

Thanks I’ll try and think on a work around