Question

How to add the attributes to the relation between the people and objects

  • 30 August 2023
  • 1 reply
  • 29 views

For example: We have Company as an object. There is a person in 2 companies and their role in one is admin and the other is member.

Is there a way to accomplish this?


1 reply

Badge

Hey there, 

I’m a Product Manager at Customer.io. We’re close to finished with a feature that will let you do exactly this (and more)! It’ll become available in the next 1-2 months. 

In the meantime, your best bet is to use JSON in profile attributes. For example, for a person who’s an admin of company 28, but a member of company 56, set an `company_role` attribute with the following JSON:

[{
"company_id": 28,
"role": "admin"
}, {
"company_id": 56,
"role": "member"
}]

Our segmentation conditions understand JSON, so you could create a segment of people who have a `company_role` attribute with any `role` equal to admin. That’d give you all people that are an admin of at least one company. 

Again, there’ll be more flexibility and capability around all of this soon!

Reply