Skip to main content

How to update a cell icon

  • January 30, 2023
  • 6 replies
  • 735 views

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()

6 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • January 30, 2023

Hello there @itamar_biot and welcome to the community!

I hope you like it here 💪

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 🙂

Cheers,
Matias


rob
Forum|alt.badge.img
  • monday.com Partner
  • January 30, 2023

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.


  • Author
  • New Participant
  • January 30, 2023

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


rob
Forum|alt.badge.img
  • monday.com Partner
  • January 30, 2023

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


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • January 31, 2023

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


  • Author
  • New Participant
  • January 31, 2023

Thanks I’ll try and think on a work around