Skip to main content

Hi Team, im trying to get attributes from object in an email but there is no relationship between the person and object, but there is one attribute which is not unique id available in person attributes which is equal to object id however since its not idenitifer i wasnt able to do relationship query but now im trying this approach.

 

{% if objects.sf_user | object_id == '0053z00000BEggWAAT' %}

{{sf_user.sf_user_first_name}}

{% else %}

{{sf_user.sf_user_first_name}}

{% endif %}   

 

 

Great question!

 

At this time, we are only able to pull in object attributes that are associated with profiles. So in order to reference an Object’s attributes, your customer would need to be associated with that Object either via the workflow action or our API (as you mentioned, knowing the identifier of both the customer and the object are necessary to make this relationship).

 

Once you have associated the object with the customer’s profile, this part of our documentation discusses how object attributes can be referenced with Liquid: https://customer.io/docs/journeys/objects/#use-objects-in-liquid

 

NOTE: In the future, we plan to add methods for defining the object(s) you want to reference in liquid instead of being limited to the 10 most recently added per type.


Hi! I was wondering the same question. I would like to use object data in a campaign where the person is not yet related to the object.
Would be great to have this feature in the future.


Hi! I was wondering the same question. I would like to use object data in a campaign where the person is not yet related to the object.
Would be great to have this feature in the future.

You could try using collections, but my guess is that those won’t work for what you’re thinking of building. Those are used more for something like events.  


Reply