How to Call rest 2 api but add in database just 1 row

0
my first time with mendix. I call rest 2 api not same URL and not same import mapping but map to same entity.It both is decimal value. I need to calculate both attibute to ‘finish’ attibute but ‘Total_pro’ and ‘defect’  attibute not in the same row in database. It coming 2 row by some attibute has a value 0. How to combine it?
asked
2 answers
0

Use product as parameter for the import mappings. So create or retrieve first the right product. Then do both the import mappings and make sure you return the updated product. Then do the calculation and store it.

Regards,

Ronald

 

answered
0

If you don’t need to keep all the data from both REST calls, another approach could be to have a them return non persistent entities. After both REST calls have been made, you can then create an instance of the persistent entity, and place the results of your calculations there.

answered