Skip to main content
Partner - Gold
January 22, 2026
Solved

Custom Objects Parent/Child

  • January 22, 2026
  • 1 reply
  • 58 views

Hi All
I am creating a large integration with an ecommerce system and custom objects. 

I have customers, that purchase multiple season pass from the same account, and each season pass has its own properties such as unique ID/type/start date/user ex. 
 

So basically I am using a parent/child approach so each object has a Parent (relationship=email) and child ( Unique ID = Season card ID)

 

But for some reason I only get the latest season pass on each profile in the custom object, and not multiple season pass. 

What am I missing here? I hope you can help

 

Best regards
Kresten

    Best answer by saulblum

    You can loop through all the objects for a given profile.

    https://help.klaviyo.com/hc/en-us/articles/35146367972763

    Retrieve object records

    To retrieve the most recent object records for an object, you’ll need to loop through all the object records. This example uses the following:

    • Object called Pets
    Structure Example
    {% customobjects object_type_title="Title" as alias %}
    {% for object_instance in alias %}
    {{ object_instance.record }}
    {% endfor %}
    {% endcustomobjects %}

    {% customobjects object_type_title="Pet Profile" as pets %}
    {% for pet in pets %}
    {{ pet.name }}
    {% endfor %}
    {% endcustomobjects %}

    1 reply

    saulblumAnswer
    Klaviyo Employee
    January 22, 2026

    You can loop through all the objects for a given profile.

    https://help.klaviyo.com/hc/en-us/articles/35146367972763

    Retrieve object records

    To retrieve the most recent object records for an object, you’ll need to loop through all the object records. This example uses the following:

    • Object called Pets
    Structure Example
    {% customobjects object_type_title="Title" as alias %}
    {% for object_instance in alias %}
    {{ object_instance.record }}
    {% endfor %}
    {% endcustomobjects %}

    {% customobjects object_type_title="Pet Profile" as pets %}
    {% for pet in pets %}
    {{ pet.name }}
    {% endfor %}
    {% endcustomobjects %}