Hi,
I am trying to create a map field in the schema. The only types of values allowed are string and integer through the UI. However, it seems like it's possible that we can create map fields with more than string and integer types from the note here. I also took a look of the identitymap object, and it's using an array type for the values. Ideally I want to create a map structure similar to the identitymap field being key + array of object as the value.
Can someone point me in the right direction how I might be able to create this through the API?
Thanks,
Views
Replies
Total Likes
Hi @FrankXu3
the complex Map type is API only and has to be created through the Schemas API endpoint
To be honest, I have not done it myself and was also just asking ChatGPT for examples ("How can I create a complex map type in AEP APIs?").
This will give you code examples that hopefully answer your question.
Thanks! So I don't think it's possible to have the value type as an array.
Views
Replies
Total Likes
Hi @FrankXu3,
Just to add a bit more context—before storing this type of data, I recommend thinking carefully about how you plan to use it.
From experience, this kind of nested map structure can be challenging to use in activation, especially if you need to export it to a destination. Also, it might be not directly usable in segmentation.
Since AEP is not a traditional data warehouse (DWH), it’s important to normalize your data model where possible to make downstream usage easier.
Kind regards,
Parvesh
100% Agreed! We have a unique use case in our organization and I'm just trying everything to figure out a way to build a dynamic offer in AJO. The lookup dataset functionality would have solved this but it's not available in web channel yet.
Hi @FrankXu3,
Did the shared solution help you out? Please let us know if you need more information. Otherwise kindly consider marking the most suitable answer as ‘correct’.
If you've discovered a solution yourself, we would appreciate it if you could share it with the community
Views
Replies
Total Likes
@FrankXu3 Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies