Mendix API REST Import Mapping Issue

0
Hi everyone !  I am working on a project where I need to import data via a REST API using Mendix. I am encountering an issue when mapping the API response data to my entities. The response from the API contains valid data, including an idAudit, but when I import the data using the mapping, the idAudit for each created object is always set to 0.   I am using the Json Structure and Import Mapping :      to call an API Rest that returns a list of Audit. Despite this, every time I use the Get Microflow, the IdAudit created is always set to 0.    I do need to stay on persitable entities because my project is going to be with an offline tablet version.    Thank you for you for your time reading and helping this ! 
asked
3 answers
0

Is IdAudit being returned by the REST service? 0 sounds like a default value so it could be it's not being returned.

 

You can test for this by setting the log level for REST Consume to TRACE. This means the request and response will be shown in your logs and you can see if IdAudit is there and populated.

 

I hope this helps.

answered
0

Alix,

Can you add a screenshot of the properties window for the JsonObject entity in your import mapping?

 

image.png

Thanks,

Mike

answered
0

Sure Mike !

 

image.png

 

Thank you for your time :)

answered