Hi Thomas,
If you just have two entities (one Documents with many DocumentData) you can put that in a message definition, and then a normal export mapping will return something like:
{"DocumentData":[{"Name":"A","Base64":"aaaa"},{"Name":"B","Base64":"bbbb"}]}
If you then go to your message definition to the `DocumentData_Documents` associations, and change the value in column `External Name` to `Documents` (it's a bit hard to see, but you can) and then rebuild your export mapping, the output is:
{"Documents":[{"Name":"A","Base64":"aaaa"},{"Name":"B","Base64":"bbbb"}]}
which might be what you want. Let me know if this what you are looking for, it could be that you are really looking for a situation with 3 entities. That is a bit more complicated.
Regards,
Paul
Hello Thomas,
Would you mind sharing what your domain model looks like and what the resulting JSON structure should look like after striking out that section?
Thanks
Here is an example of my domain model and JSON structure what I want.
"Documents": [
{
"Name": "string",
"Base64": "string"
}
]
}