Skip to main content
Michael_Soprano
Level 10
Dec 12, 2024 9:55 AM UTC
Solved

creating array of objects

Is it possible to create such a data structure in order to iterate over this in AJO? Everytime I create something I am not allowed to save it. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
RiteshY18
RiteshY18Accepted solution
Community Advisor
Dec 20, 2024 3:53 AM UTC

@michael_soprano Adobe suggests using simple XDM and limiting nesting in terms of object, specifically if felid is going to be part of Primary/Secondary identity - should not done, rather simplify ERD/XDM to get required felid. If you still need to do think of scalability in terms of future requirement 

6 replies

kautuk_sahni
Level 9
Dec 12, 2024 10:38 AM UTC

@asheesh_pandey @ankursingla @jennifer_andrews @yumera @jennifer_dungan @vanibhemarasetty @abhishek_narula25 @user48 @shuaib27811 @pratheeparunraj Kindly take a moment to review this question and share your valuable insights. Your expertise would be greatly appreciated!

Translate
Kautuk Sahni
GigiCotruta
Level 4
Dec 17, 2024 12:18 PM UTC

Hello, @michael_soprano,

 

I am not exactly sure if this is helpful, but, as I understood you properly, in AEP, in Schemas, youc an create an array of objects in the following way: 

We are using it and it works without any problems. 

 

Hopefully it helped, 

BR.

Translate
bjoern-koth
Adobe Employee
Adobe Employee
Dec 12, 2024 1:17 PM UTC

Hi @michael_soprano 

afaik - at least I have come across this in the Adobe videos a while back - there is/was only one array of objects supported which is the productListItems.

 

Maybe this has changed, but your experience seems to reflect this. Would be great if Adobe could confirm this.

 

https://experienceleague.adobe.com/en/docs/experience-platform/xdm/data-types/product-list-item

 

Translate
Cheers from Switzerland!
Michael_Soprano
Level 10
Dec 12, 2024 2:03 PM UTC

I would like to create custom array of objects. I created for now custom Data Type which I can put into array and testing that in AJO. Would come back with feedback... 

Translate
Adobe Employee
Dec 18, 2024 10:50 PM UTC

@ Michael_Soprano , I'm not quite following what your ask is and its use case.  You can fully create an array of objects within XDM as @kautuk_sahni outlined.  Could you describe where you encountering the issue you are raising within AJO and the context of the use case?

Once I have that detail I can likely provide some better direction and/or input. Thanks!

Translate
RiteshY18
Community Advisor
RiteshY18Community AdvisorAccepted solution
Community Advisor
Dec 20, 2024 3:53 AM UTC

@michael_soprano Adobe suggests using simple XDM and limiting nesting in terms of object, specifically if felid is going to be part of Primary/Secondary identity - should not done, rather simplify ERD/XDM to get required felid. If you still need to do think of scalability in terms of future requirement 

Translate