Accessing Customer Attributes in Offer code dynamically

rajneesh_gautam

04-08-2017

Hi all, can someone please confirm the syntax of how customer attributes' value can be directly retrieved in the offer code? We use following syntax to access values of profile attributes : ${profile.your-profile-attribute}

For customer attribute, I am trying ${crs.data-source-name.attribute-name} but it doesn't seem to be working. Would appreciate a swift response here - thanks,

Regards,

Rajneesh

View Entire Topic

rajneesh_gautam

07-08-2019

Hi @mattk84335255, you can use following code in Target offer to fetch a customer-attribute value directly:

var a = "${crs.<integration-name>.<customer-attribute-name>}"

Note that <integration-name> is name of Customer Attributes Integration and NOT the alias-id.

Hope it helps,

Rajneesh