Rest api export mapping

0
Hi Experts, In attached screenshot. It has been mentioned that export mapping supports only flat jsons or jsons which are having at most one level deep. But we have a business use case where we have to post a nested json request which is having multiple level deep( more than 5 levels ) to a rest service. Is it possible to post a nested json request which is having multiple level deep to a rest service in Mendix? Your help is appreciated.
asked
2 answers
0

I think the question is about self-referencing entities. The export-mapping won't support this. For import mapping you could have used the json path module, but for export I think you will need to build the Json string yourself in a microflow? Which is less than ideal.

answered
0

Yes, nested-object and nested-array are supported. See some how-to here: https://docs.mendix.com/refguide/consumed-rest-services.

I created a pull request for the documentation.

answered