Solved

User Property/ Identify question: How can I convert a property that is array of nums to a plain number?

  • 29 September 2023
  • 1 reply
  • 132 views

Can you force the Identify API to replace an array with the most recent value?

I have a user property which was (accidentally) set to append numeric values vs. replace.  I have since fixed this setting, but my user property remains an array after updates with Identify calls.  Updates seem to update one value in the array, leaving other items in the array unchanged.  The user property is defined as an Integer in Amplitude (and has been all along).

Eg. 

ages = [6,4,9,2,1]

On identify call now, updating “ages” to a new value will only replace a value in the array, vs setting the user property to the new value.

How can I force a numeric user property currently appearing as an array to take an update?

Eg. I want...

ages = 3;  // with an Identify call updating user property “ages” to “3”

Any help would be much appreciated.  Thanks!!

icon

Best answer by Shannon McGuire 9 October 2023, 20:32

View original

1 reply

The issue has been resolved! 👍

I had a 2nd source pushing data to Amplitude via Segment with the “append” setting still incorrect.

Thanks to the Amplitude team for their support.

Reply