Hi ,
Is there a way to access profile attributes within the Adobe target Desgin code?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
hi @DivyaAshankar - the user.PARAM, including the $ sign should be enclosed within double-quotes. Here's a version of code that does not give parsing error (though in case of Recommendations design, it will you an error if you do not refer to an entity)
[#set($parmas="$(user.mboxparam)")]
Hi @DivyaAshankar - yes you can access profile-attributes in experience code. Here's the syntax:
var a = “${user.YOUR_PROFILE_ATTRIBUTE}”;
For more detail, you may refer to: https://experienceleague.adobe.com/docs/target/using/experiences/offers/passing-profile-attributes-t...
Hope it helps
Regards
Rajneesh
Tried this, but gave me the parse issue .
hi @DivyaAshankar - the user.PARAM, including the $ sign should be enclosed within double-quotes. Here's a version of code that does not give parsing error (though in case of Recommendations design, it will you an error if you do not refer to an entity)
[#set($parmas="$(user.mboxparam)")]
Views
Like
Replies