Hey folks, So im planning on consuming a rest api in my project and now im currently at the import mapping. The problem for me is that the data coming in is just one object where as i need to map it to multiple different enities all connected with associations. Is there a way to map one incoming object to mulitple entities in my domainmodel? Cheers, Niklas
asked
Niklas Höflmayr
1 answers
1
Hi Niklas,
I would use the JSON that I get as a response to create a non-persistent object as the automapping suggests. In the next step in your Microflow, I would do the population of the persistent entities (data )using your own logic. In that way, you can also add validations and conversions. It is considered more secure.