Skip to main content

What is best practice to populate an existing column through an API-call?

  • January 19, 2022
  • 5 replies
  • 981 views

Sina
  • Participating Frequently

Hello again!
I just wanted to check one thing with you guys:
I now manage to create a board, create an item and create 6 column on this item. But the columns are empty. What is the best way to populate these empty columns through a mutaiton? I found “change_simple_column_value” and “change_column_value”, but I guess these are for changing the already existing content of a column. Is it best practice to use one of these for populating empty columns as well? If so, which one of them? Maybe I’m not properly understanding the documentation 😅

And as usual: Thank you guys for always replying quickly and clearly! 🙂

This topic has been closed for replies.

5 replies

Sina
  • Author
  • Participating Frequently
  • January 19, 2022

ideally I would like to populate these 6 columns with one single call, and I guess that’s possible, correct? 🙂


basdebruin
  • Community Expert
  • January 19, 2022

hi @Sina

Both “change_simple_column_value” and “change_column_value” allow you to change (or initially set) the column values for an item. The difference is that the first one expects the value as as sting, where the second one expects a JSON (stringified).

To change multiple columns in one call you can use “change_multiple_column_values” that support both string and JSON formats. See also here


Sina
  • Author
  • Participating Frequently
  • January 20, 2022

Thank you again for sharing your knowledge with us/me, @basdebruin! 🙂


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • January 23, 2022

@basdebruin = 👑

Thank you for sharing your awesomeness!


  • January 30, 2022

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.