I’m currently using the AuftragEdit and BestellungEdit endpoints, to update some fields, like for instance the datum, but when doing so, the position is being replaced, and creates new ones.
Is that by design ?
Is there any best practice on how the updates are done so that I don’t lose information when using these endpoints ?
Is there any other way whether that’s using the API or any other possibility where we can update the records programmatically, without of course overriding existing relationships ?
in our legacy standard-api you need to send all positions with your request when usin any of the (Document-Name)Edit Endpoints like AuftragEdit, LieferscheinEdit, etc.
If you don´t send the positions when updating the data, they will be overwritten…in this case deleted.
Thanks for answering, but unfortunately when that’s done in the AuftragEdit, the ids of the auftrag positions, are new, therefore, the connection between purcahse order and sales orders which is done from purchase order positoin → sales order position is gone. That’s one issue that made us not continue with updating Auftrags,
The second issue is that when updating Purchase Order, with sending all positions, the side effect this time is that new artikels are created everytime, which then is too confusing to update later on.
I hope that’s all clear, and let me know if there is any other way around.
This means that regardless if we are updating something in the sales order, we will also send the sales order positions together, because if you don’t, the positions will be overwritten like @Pau_Ferrandiz previously mentioned.
PS: Please take into consideration that the new REST-API is being developed right now, that means we expect changes on the endpoints constantly and some BETA-Endpoints.