Expand my Community achievements bar.

Join Adobe Journey Optimizer product experts for a live Ask Me Anything on June 25th at 8 AM PT!
SOLVED

Using Array Attributes from an AEP Profile in Web Channel

Avatar

Level 1

Hi, 

 

On my user profile schema, I have an object array that stores information of the accounts the user has access too. Something like[{"accountName": "A","balance": 10}, {"accountName":"B","balance": 9}]. In the web channel personalization I was able to display plain text or any attributes that's not in an array. However whenever I tried using an attribute that's an array, it would return blank. Even when I have wrap it in an array function like 

{%= head(profile._xxx.accountName) %}. In the websdk response, it would show it like the screenshot
 
Want to understand if this is a web channel limitation or if I am missing something. 
FrankXu3_1-1747420510011.png

 

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi @FrankXu3 
I believe this is current web channel limitation in AJO. Arrays of objects aren’t supported in web channel personalization because personalization engine is optimized for simple, fast, and secure substitutions.For complex data, flatten key attributes or handle rendering in your web application’s code and render that data as needed. This gives you full control over how arrays of objects and other advanced structures are displayed in your UI.

Thanks

AJODev

View solution in original post

3 Replies

Avatar

Correct answer by
Level 4

Hi @FrankXu3 
I believe this is current web channel limitation in AJO. Arrays of objects aren’t supported in web channel personalization because personalization engine is optimized for simple, fast, and secure substitutions.For complex data, flatten key attributes or handle rendering in your web application’s code and render that data as needed. This gives you full control over how arrays of objects and other advanced structures are displayed in your UI.

Thanks

AJODev

Avatar

Level 1

Thanks for the sanity check. Wish this was documented somewhere lol. 

Avatar

Level 6

Hi @FrankXu3 ,

Agree with @AJODev 's response but in addition to that you can use Query Service or Data Prep to extract specific fields from array & store them as simple attributes.