Skip to content

Ability to return contacts as array in Relationship

FoadYousefi requested to merge FoadYousefi/dataprocessor:master into master

This is useful when we want to return more data about the contact in the relationship instead of only the name. This change adds a new option to relationship settings to return contacts as an array.

The new returned value looks like this:

"age": [
         {
          "label": "Housholdschild",
          "display_name": "Kari normann",
          "birth_date": "2010-11-12",
          "contact_id": "1234",
          "contact_type": "Individual",
          "contact_sub_type": "GullbarnSoesken"
         },
         {
          "label": "Housholdschild",
          "display_name": "Ola normann",
          "birth_date": "2012-1-2",
          "contact_id": "4321",
          "contact_type": "Individual",
          "contact_sub_type": "Parent"
         }
]

Merge request reports

Loading