Skip to main content
Answered

How do I store a list of items in a custom data attribute?

  • January 18, 2023
  • 2 replies
  • 264 views

With the API or from the UI, I can create custom data attributes. These attributes can have one of string, integer, float, boolean, or date values. However, I need to store a list of values in a field.

 

For example, a user (contact) can be in many teams at once in our system. But with the above model, I can only have one team at a time.

 

What are the possible ways to implement the above functionality with the API/SDK? Should I use tags, or something else?

 

Thanks in advance.

Best answer by Daniel M15

Hey @wickramaranga​! Daniel from Customer Support Engineering here 🔧 

 

We do not currently support list data types for custom attributes. It might be worth creating a tag for each "team", so that you can then apply a tag to the user for each team they are in. You could even automatically create the tag using our Create or update a tag endpoint. You can have unlimited tags, and I believe there's no limit on the number of tags a user can have.

 

Hope this helps 😊

View original
Did this topic help you find an answer to your question?

2 replies

Daniel M15
Employee
  • Employee
  • 240 replies
  • Answer
  • January 20, 2023

Hey @wickramaranga​! Daniel from Customer Support Engineering here 🔧 

 

We do not currently support list data types for custom attributes. It might be worth creating a tag for each "team", so that you can then apply a tag to the user for each team they are in. You could even automatically create the tag using our Create or update a tag endpoint. You can have unlimited tags, and I believe there's no limit on the number of tags a user can have.

 

Hope this helps 😊


  • Author
  • New Participant
  • 1 reply
  • January 21, 2023

I tried creating tags for teams like "team:teamId" so we can kind of put them into namespaces and it works.

 

Thank you very much.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings