Using Array Attributes from an AEP Profile in Web Channel | Community
Skip to main content
Level 2
May 16, 2025
Solved

Using Array Attributes from an AEP Profile in Web Channel

  • May 16, 2025
  • 2 replies
  • 769 views

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. 

 

Best answer by AJODev

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

2 replies

AJODevAccepted solution
Level 4
May 16, 2025

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

FrankXu3Author
Level 2
May 16, 2025

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

AnkitJasani29
Level 6
May 19, 2025

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.

Pradeep-Jaiswal
Level 5
October 7, 2025

is this still a limitation ?