Adding labels to a ClickUp custom field without overwriting existing labels

Hi,
this is getting frustrating so I was hoping for some help in the community! :pray:

My goal: At the end of an flow, add a specific label to a ClickUp custom field (as kind of confirmation in ClickUp, that the automation has been run).

So I found out that simply adding a label to an existing custom field is not possible (if so, please let me know how, would be the easiest!).

So my workaround idea is to get all existing labels from the task, then edit the task with “custom field editor (advanced)” and update the labels by first add the new label (hard coded) and then add all existing labels. The number of existing labels varies.

My setup



I struggle to iterate through the existing labels and add them one by one if existing.

Manually “iterating” through them works but only if the number of labels is exactly that, otherwise I get an runtime error “[400] FIELD_158: Values must each be a valid option id”, ignoring that with an error handler didn’t work.

Any help/ideas?

The same challenge if I use AirTable instead of ClickUp.
Just adding a new value for the multiple select field will overwrite all existing.

But how to take all existing ones and add a new one?
image 2024-08-29 um 09.15.23
This is one of my approaches, but I’m getting an errror that “Insufficient permissions to create new select option”.

Hi there!
So what you want to do is add another string of text in your custom field that already contains a value as a label of sorts correct?

Exactly. And I found a solution finally, which was easier than thought.
I just added a array aggregator before to collect all existing values and then with this formula taking the existing ones and add a new one:
image 2024-08-29 um 10.23.38

2 Likes