I have a requirement on my hands to update sales order and sales order lines via x++ code.
I have a custom table linked to a custom data entity. So I need some x++ snippet to update sales orders header and sales lines...
I need to update sales order headers and sales line from a web API which will, of course, hit the data entity endpoint for sales order and sales line.
I've been having a hard time achieving this, that's why I'm thinking of coming up with a custom table and data entity and then add the fields needed for the update operation to work as columns on the table and the on the insert() method, carry out the update operation and wipe the custom table clean when the update operation completes.