Mongoose REST API v2: nested collection for IDO update method
I haven't been able to find an example of how to use nested collections for the update/{ido} method. Could this be used to insert or update a parent record and also insert or update child records?
Comments
-
Ideally, I'd like to be able to insert a customer order and customer order lines at the same time.
0 -
Yes, this is possible.
There is no example for the REST API but Example 2 here
shows it for the .Net API. The principle is the same.1 -
Thank you Carsten, I tried to convert the example into a request for v2 (image below), but I'm getting an error. I can verify that both IDOs are present in the system.
0 -
The Nested Collection is itself a property. Here it is called "UserDefinedTypeValues". For Customer Orders it is SLCoitems as a property of the SLCos IDO.
Also, I am usually passing an ItemNo (just a unique number per Item).
1 -
Thank you Carsten! This worked for me and helped me to understand how nested collections work for v2 :) Much appreciated!
0