Not really sure what you mean, but i guess this has something to do with arrays. For example externalIds wil return a list on his own because this is an array. Not only one externalId.
"externalIds": [
{
"externalId": "user@email.it",
"defaultFlag": "true",
"type": "primaryExternal"
}
],
Yes, that's true. It will generate an array but this is not my direct problem. I mean what I need is a unique entity to have both values from the "main" array (the one containing id, businessUserId, description, etc.) and from the internalIds ones. I was wondering if there's a correct way to do so.
I was also trying to create two separate lists and then merge them, but, once again I was not able to have the complete set of data that I need.
Create an extra entity with all the values in it you want. Then you have to map the json first as is. And after the mapping in a microflow you can set a the attributes you want in the extra microflow. You should loop through the arrays.
There is no way you can do this directly in the import mapping.
Hi Sander. Thank you very much, May I ask you: taking the entire response I posted in my first message, what would you put in the main Entity data set and what would you consider an additional array?
Once I've created the two entities, how can I link them together in order to display them as a single entity in my page?
What i would do is let Studio Pro create the entities for the json for you. This can be done via the map automatically button. Then you dont have to link them yourself.
Maybe its a good idea to foloow the learning path about import mappings. This kind of things are handled in there if i remember correctly.
Do you mean the following link?
https://gettingstarted.mendixcloud.com/link/path/44