I am developing an integration with MS Dynamics NAV by using OData web services.
Everything works great except when I try to add SalesLines for SalesQuote or SalesCreditMemo. When I post the following JSON I always get the error "Document No. must have a value in Sales Line: Document Type=Credit Memo, Document No.=, Line No.=0. It cannot be zero or empty." .
I use the exact same procedure/steps for SalesInvoice and SalesOrders and the lines are added correctly.
I tried everything but no luck....Am i missing something?
Post request to: "192.168.41.124/.../Company('CRONUS Canada, Inc.')/SalesCreditMemoSalesLines?format=json"
With json body:
{
"Document_Type": "Credit Memo",
"Document_No": "1016",
"Type": "Item",
"Description": "Product with characteristics",
"No": "70067"
}
*This post is locked for comments