Skip to main content

Hello,

I want to add a tag to a customer without removing any existing tags. I am sure there is a way to do this using the code by Zapier action (javascript)…

 

So far I am able to get the tags then split them into an array but I’m stuck at this point:

 

var tags = inputData.tags

var arrayTags = tags.split(',');

var final = arrayTags.push("new tag");

final = final.toString();

output = {final,final}

 

Nothing is being pushed to the test user account I have created… Any ideas?

 

Thanks!

Hey @ElliottF ,

 

Its possible, add below actions. 

 

  1. Action 1 - Find Customer (This action will give all the tags)
  2. Action 2 - Update the customer (In the input, add the tags from Action 1, and than add your new tag comma seperated)

Hope this works!