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

08-08-2019

Hi @mattk84335255, while using dynamic tokens in offer-code, you can provide default valie like this:

var x = ${user.x default="default_val"};  // Setting default value for profile attribute x

Hope this helps,

Regards,

Rajneesh