Solved

Remove entry from array property

  • 25 January 2022
  • 1 reply
  • 140 views

We have a use case where we have a list of tags that we apply to users and I want to make use of the append function to have an array representing the list of tags. We also occasionally remove tags from a user. Is it possible to remove a specific entry from an array property? 

icon

Best answer by Denis Holmes 26 January 2022, 10:16

View original

1 reply

Userlevel 6
Badge +8

Hi @elniallo 

Thanks for writing into Amplitude Community!

Indeed, you can maintain the array using the prepend, append and the remove function provided in the Identify API. Attaching an example call where we have an array called ArrayProperty and we are removing the passed values, meaning we are removing, in this example, two elements named "First Element Name" and "Second Element Name" from the ArrayProperty array. I hope that helps!

Kind Regards,
Denis

Reply