XML AIF Create Sales Order with Price Override

Hi,

I am trying to import an XML to create a sales order with the Price Override flags automatically checked. The reason is that when I hit “Complete” to pick/pack the order, the pricing changes back to the default item price instead of retaining the price that was imported.

I have checked the Account Receivable Parameters / Prices and made sure that “AIF” was one of the items listed under Trade agreement evaluation. I have also added “MCRSalesLinePriceOverride” into table SalesLine as well as Query AxdSalesOrder. I’ve refreshed the AifService and I can see MCRSalinesLinePriceOverride_1 in the schema.

When I try to write the XML, it gives an error that “SalesLine” is not there. During the create Sales Order, I won’t know what this value is. Is there a way to create the sales order and sales lines, and then create the lines necessary in MCRSalesLinePriceOverride all in one XML?

Thank you for any help. I don’t know why this is so difficult.

Here is the XML that I am using:

<?xml version="1.0" encoding="utf-8" ?>

](http://schemas.microsoft.com/dynamics/2011/01/documents/Message)

{5603D03A-4380-404D-9F27-738BE0F05920} [schemas.microsoft.com/.../Action>](http://schemas.microsoft.com/dynamics/2008/01/services/SalesOrderService/create) ](http://schemas.microsoft.com/dynamics/2008/01/documents/SalesOrder) 10501 Test Patient 2016-11-16 OFFPU IN005962 2016-11-16 110 0 50 5 pcs Yes AUTOASSIGN

Anybody have any hints or other workarounds?
When the SalesLine is specified, it knows how to link to the SalesTable. How come the MCRSalesLinePriceOverride can’t read the SalesLine that is created and associate that with the SalesLine Table?