My company's vendor software (which interacts heavily with D365 Supply Chain) submits a PATCH similar to this:
my-company.devaos.cloudax.dynamics.com/.../ExpSalesQuotationLines(dataAreaId='bau',InventoryLotId='LOT001840598')
{
"BOMId": "BOM00034875",
"DeliveryAddressLocationId": "000017124",
"ProductConfigurationId": "000317",
"RouteId": "RTN00026004",
"SalesPrice": 5004.87,
"LineDiscountPercentage": 38
}
On the initial POST prior to this, everything works. But then when the PATCH above is sent, SalesPrice and/or LineDiscountPercentage come through as blank. The only sure-fire way to make this work is to send the patch 3 times. That's right: THREE TIMES. This is 100% reproducible in my Hyper-V VM and against multiple F&O environments.
ExpSalesQuotationLine is our company's extension of the standard quote line entity (SalesQuotationLine). Any ideas are welcome. Even if you could tell me where exactly in the X++ to debug to see why the first 2 PATCH requests don't update those 2 attribute values, that would be a useful place to start.
Thanks in advance.