Hello Team,
I use the following web service to update the Customer Entries:
UPDATE: host:port/.../CRONUS Canada, Inc./Page/ApplyCustomerEntries
Request:
<soapenv:Envelope xmlns:soapenv="">schemas.xmlsoap.org/.../" xmlns:app="urn:microsoft-dynamics-schemas/page/applycustomerentries">
<soapenv:Header/>
<soapenv:Body>
<app:Update>
<app:ApplyCustomerEntries>
<app:ApplyingCustLedgEntry_Posting_Date>2022-01-12</app:ApplyingCustLedgEntry_Posting_Date>
<app:ApplyingCustLedgEntry_Document_No>V03039</app:ApplyingCustLedgEntry_Document_No>
<app:ApplyingCustomerNo>C00100</app:ApplyingCustomerNo>
<app:ApplyingCustLedgEntry_Currency_Code>USD</app:ApplyingCustLedgEntry_Currency_Code>
<app:ApplyingCustLedgEntry_Amount>100</app:ApplyingCustLedgEntry_Amount>
<app:AppliesToID>V03039</app:AppliesToID>
<app:Posting_Date>2022-01-12</app:Posting_Date>
<app:Document_Type>Invoice</app:Document_Type>
<app:Document_No>103092</app:Document_No>
<app:Customer_No>C00100</app:Customer_No>
<app:Description></app:Description>
<app:Currency_Code>USD</app:Currency_Code>
<app:Original_Amount>10</app:Original_Amount>
<app:Amount>10</app:Amount>
<app:Amount_to_Apply>5</app:Amount_to_Apply>
</app:ApplyCustomerEntries>
</app:Update>
</soapenv:Body>
</soapenv:Envelope>
But Navision returns the error message:
<s:Envelope xmlns:s="">schemas.xmlsoap.org/.../">
<s:Body>
<s:Fault>
<faultcode xmlns:a="urn:microsoft-dynamics-schemas/error">a:Microsoft.Dynamics.Nav.Types.Exceptions.NavCSideRecordNotFoundException</faultcode>
<faultstring xml:lang="en-US">The Customer does not exist. Identification fields and values: No.=''</faultstring>
<detail>
<string xmlns="">schemas.microsoft.com/.../">The Customer does not exist. Identification fields and values: No.=''</string>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
Could you recommend how to solve this error?
In Navision, I have the Customer C00100