I'm working on a webservice / api which will is running on a BC16 OnPrem environment.
It has been working out great so far, but I experience a lot of issues, when trying to insert data with header and lines.
I have created my example code on https://github.com/kefdk/bc16-api
(yes, I have been reading on this blog-post: https://www.kauffmann.nl/2020/07/01/deep-insert-with-business-central-apis-part-2/
My JSON body data for the post-request (through Postman) looks like this:
"description": "Test 1",
"description": "Line 1"
"description": "Line 2"
I would expect this body data to create a header and two lines attached to this header. The header is created successfully, but the lines are not to be found.
I can see from various posts around the net that a lot of people are having the same problem as me, but I cannot find a solution for this. I would believe that this should be possible to do.
Do anyone in here have any ideas to a solution?
Thanks in advance, and have a great day!