creating array of objects | Community
Skip to main content
Michael_Soprano
Level 10
December 12, 2024
Solved

creating array of objects

  • December 12, 2024
  • 4 replies
  • 1463 views

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.
Best answer by RiteshY18

@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 

4 replies

kautuk_sahni
Community Manager
Community Manager
December 12, 2024

@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!

Kautuk Sahni
GigiCotruta
Level 4
December 17, 2024

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.

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 12, 2024

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

 

Cheers from Switzerland!
Michael_Soprano
Level 10
December 12, 2024

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... 

Adobe Employee
December 18, 2024

@ 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!

RiteshY18
Community Advisor
RiteshY18Community AdvisorAccepted solution
Community Advisor
December 20, 2024

@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