Hello,
Found out today that when a user goes into a sales order and changes the Requested Ship Date on a particular order line, it generates what looks like another order line.
Example two order lines in an orders:

I know it's not really a new order line and the system must be doing this to show a change (maybe someone could also explain why D365 does this) and in the SalesOrderLineV2 data entity it shows up as two order lines with no way that I can tell that this is not an order line. I use this data to publish to our external facing so customers can log in and see the status of their orders. This came up because the customer said they didn't order the quantities they viewed on the website. Digging in and investigating, I realized that when you change the Requested Ship Date another record is created. Does anyone know what data entity I need to know that this is a true order line? I have looked at the SalesOrderLineV2 and SalesOrderLineCDS and there is nothing distinguishable between the lines to know so I don't export duplicate sales order lines. Will I need to create a custom entity for a unexposed table?
Any help would be appreciated.
Thanks,
Tim
#DataManagement
------------------------------
Tim Stutzman
ERP Systems Manager
Pure Archery Group
Eugene OR
------------------------------