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.
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 %}
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 %}
Search saves time. Contributing compounds value.
The ROI of your reply? One helpful answer can support dozens of teams, build your credibility, sharpen your own expertise over time, foster connectivity, and create good karma – because what goes around comes around. The community is what YOU make it.