# Keep old tags when I update a contact in Teamleader through Make

**URL:** https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274
**Category:** Questions
**Tags:** webhooks
**Created:** [July 9, 2024, 12:49pm UTC](https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274 "2024-07-09T12:49:48Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Bamboologic](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@Bamboologic](https://community.make.com/u/Bamboologic)
#### Post date: [July 9, 2024, 12:49pm UTC](https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274/1 "2024-07-09T12:49:49Z")

</div>

Hello again guys,

Currently setting up a router with 2 routes - Either the contact exists already, or it does not. The module where the contacts are stored is Teamleader, our CRM system.

I have a problem with updating the contacts. If I update a contact, obviously I don’t have to map the first name, last name or other regular fields again, since most of them already contain the correct data.

But when I want to add tags, it does add the new tags that I assign. But the old tags that the contact had, are removed. I tried a few times to keep the old tags, using the ‘Tags’ field from Teamleader itself. Unfortunately this action combines all the existing, old tags into 1 tag. Obviously useless and not working. Also the ‘[1] Cultivation/Growing tag’ is just one tag showing up, while the actual contacts holds 2 tags already. I could insert those numbers [1] [2] in each tag field, but then the problem is that some existing contacts might contain 4 tags, Make will never give me 4 of those [tagnumber] fields.

How do I keep old tags that were already in Teamleader in it’s place and untouched?

Thanks for your help, check the screenshot below for context.

- Rob Huttinga

 ![Keep old tags](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/6/c6eae79f2eadaecc7c311cefe6483ceb7a8409a0.png)

---

<div class="post-metadata">

### Author: ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)
#### Post date: [July 9, 2024, 1:54pm UTC](https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274/2 "2024-07-09T13:54:37Z")

</div>

In the Tags field, turn on the “Map” toggle.

Then, you can map an array of tags in the field: `{{6.tags}}`

To add additional tags, use the `add` built-in `add` function:

```plaintext
{{ add(6.tags; 4.interestedIn; 4.formName) }}

```

[samliew](https://samliew.com/services) – [request private consultation](https://samliew.com/request-quote?ServiceType=Automation%20Consultation&Referrer=Make)

> Join the [Make Fans](https://samliew.com/make-discord-invite) Discord server to [chat](https://samliew.com/make-discord-invite) with other makers!

---

<div class="post-metadata">

### Author: ![Henk-Blue\_Marker](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/henk-blue_marker/32/89127_2.png) [@Henk-Blue\_Marker](https://community.make.com/u/Henk-Blue_Marker)
#### Post date: [July 9, 2024, 2:22pm UTC](https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274/3 "2024-07-09T14:22:11Z")

</div>

Hi @Bamboologic,

Know that updating collections (tags in this case) via Teamleader Focus API _empties_ the collection and replaces it with the new value: [https://developer.teamleader.eu/#/introduction/general-principles/collections](https://developer.teamleader.eu/#/introduction/general-principles/collections)

> **Updating collections**  
> Collections are replaced entirely during updates, so all the wanted values should be provided when updating entities. Other existing values which are not provided will be removed.

So if you want to add new tags, you should add the old array and merge the new values in to it.

If you have any Teamleader Focus related questions, I am available as certified Teamleader partner and Make Partner.

Cheers,  
Henk

---

<div class="post-metadata">

### Author: ![Bamboologic](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@Bamboologic](https://community.make.com/u/Bamboologic)
#### Post date: [July 10, 2024, 10:00am UTC](https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274/4 "2024-07-10T10:00:18Z")

</div>

That’s the thing, when I add that {{6. tags}}, It will add all those tags into 1 tag. Which makes a mess of the customer database. How do I seperately keep the old tags? Same question to you @Henk-Blue_Marker ; I can add the old array in the list of tags, but it WILL put ALL the old tags into 1 tag. How to prevent this. There must be a way right?

Otherwise the function to update a contact is not fully functional, if it would just overwrite the old tags, or put the old tags into 1 tag…

another thing I noticed:  
I tried to manually add a bunch of tags in Teamleader, to check if Make recognises those tags that are attached to the contact in Teamleader. Unfortunately it always only gives 1 tag…

Then I tested to add the tags with the map fucntion enabled, but this just messes up everything, it combines the tags into 1 tag, see screenshot below. EDIT: I see that i didn’t use the ; symbol - But it still merges the tags if I use that symbol

But this still leaves me with the other merge problem from {{6. tags}}

 ![map function mess](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/9/5/95252c65d39d8d6b1ea709069e2450fefd739fc3.png)

---

<div class="post-metadata">

### Author: ![Henk-Blue\_Marker](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/henk-blue_marker/32/89127_2.png) [@Henk-Blue\_Marker](https://community.make.com/u/Henk-Blue_Marker)
#### Post date: [July 10, 2024, 10:27am UTC](https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274/5 "2024-07-10T10:27:56Z")

</div>

@Bamboologic Mind you that you are passing the tags as a string:  
 ![Scherm­afbeelding 2024-07-10 om 12.20.21](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/f/5f164184dfa78a4ec5a013566c6cdf0df820a9f2.png)

Therefore, Teamleader Focus replaces the Tags with a new array that contains only the one string value.

You can either _not_ use the Map function and give in each tag as a separate item, or use the Map function and pass an array.

Let’s say you are updating the contact, you take the original Tags array and add the values you want to add with this function:  
`{{add(oldarray; "newtag1"; "newtag2")}}`

 ![Scherm­afbeelding 2024-07-10 om 12.25.14](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/b/cb3d955e5891eb9d15e9c2f15d2ee5a6ebf2a80a.png)

Feel free to contact me for a personal consultation: [Contact | Operative](https://www.operative.pro/nl/contact#start-project)

Cheers,  
Henk

---

<div class="post-metadata">

### Author: ![Bamboologic](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@Bamboologic](https://community.make.com/u/Bamboologic)
#### Post date: [July 10, 2024, 10:40am UTC](https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274/6 "2024-07-10T10:40:06Z")

</div>

Okay. But if I take the original Tags array, it will merge those original tags into 1 tag.  
Imagine 1 person signing up through 3 different forms which result in 2 times being updated as a contact. 2 times in a row the old tags will be merged into 1 tag. It will completely mess up organisation and structure in contacts and in Teamleader tag database itself.

How to solve this?

For example, this is what happens basically, we can’t have a tag that looks like this…

![merged tag](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/2/12bd64fa14c53920e7014ae137b15e5cfd6ff277.png)

---

<div class="post-metadata">

### Author: ![Henk-Blue\_Marker](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/henk-blue_marker/32/89127_2.png) [@Henk-Blue\_Marker](https://community.make.com/u/Henk-Blue_Marker)
#### Post date: [July 10, 2024, 11:03am UTC](https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274/7 "2024-07-10T11:03:10Z")

</div>

This is what should happen:

---

<div class="post-metadata">

### Author: ![Bamboologic](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@Bamboologic](https://community.make.com/u/Bamboologic)
#### Post date: [July 10, 2024, 1:25pm UTC](https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274/8 "2024-07-10T13:25:32Z")

</div>

I did not use the ‘Get a contact’ ,module yet. If my logical thinking is right, should I insert this module as in the screenshot below? Would this fix that problem that the tags array merges all the tags?? Also this module seems like not needed in my scenario, since I already fetch the contact (if existing) based on an email adress search ([equal to] filter).

Or is there something wrong in general with my tags settings (2nd screenshot to check)

 ![get a contact](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/2/124033a45c0aa07ee6ebebf48566f1bdb4840f83.png)  
 ![tags array](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/0/30dd87a7029b3c1c1069b4a5801eb1a1db453c63.png)

---

<div class="post-metadata">

### Author: ![Bamboologic](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@Bamboologic](https://community.make.com/u/Bamboologic)
#### Post date: [July 10, 2024, 1:28pm UTC](https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274/9 "2024-07-10T13:28:32Z")

</div>

It’s working. Thank you !!

---

<div class="post-metadata">

### Author: ![Henk-Blue\_Marker](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/henk-blue_marker/32/89127_2.png) [@Henk-Blue\_Marker](https://community.make.com/u/Henk-Blue_Marker)
#### Post date: [July 10, 2024, 2:14pm UTC](https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274/10 "2024-07-10T14:14:56Z")

</div>

Yes indeed, Update modules only _send data_. (generally, depends on how the app was built in Make).

So in order to enrich data, you first have to Get it, merge it and then Update it.

Happy to read it works!

Cheers,  
Henk

---

<div class="post-metadata">

### Author: ![Bamboologic](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@Bamboologic](https://community.make.com/u/Bamboologic)
#### Post date: [July 15, 2024, 5:09pm UTC](https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274/11 "2024-07-15T17:09:25Z")

</div>

I did not insert a Get module in the end. Does this mean it’s going to end up doing the same thing again? Cause I tested it and I believe it inserted the tags seperately… (which is what previously was the problem that that did not happen)

---

<div class="post-metadata">

### Author: ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)
#### Post date: [July 24, 2024, 1:34pm UTC](https://community.make.com/t/keep-old-tags-when-i-update-a-contact-in-teamleader-through-make/45274/12 "2024-07-24T13:34:06Z")

</div>


