Solved

Getting attributes from object without relationship

  • 5 September 2023
  • 1 reply
  • 44 views

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 %}   

 

icon

Best answer by Jordan 6 September 2023, 01:46

View original

1 reply

Userlevel 2
Badge

 

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.

Reply