Access village object from contact on a lower hierarchical level

For our project we need to acess a variable which belongs to the village to which a contact belongs to (e.g. the variable was set upon village creation). I’ve tried acessing this variable within a task in CHT (e.g. contact.contact.parent.parent) but all I can get is the “id” of the village.

Is there any way that I can access the variables of a parent object from a contact within CHT?

Our hierarchy is as follows: …-> village → household → contact

Hi @cht-user ,

Could you please add more details? Is there any error that you are getting?

Hi @niraj

We’ve managed to solve the problem by now, thank you.

1 Like