0

I'm trying to use the Dynamics NAV web service on the Sales Invoice entity to create invoices in NAV that are generated from another system.

The problem I'm running into is when I try and create an invoice with a different invoice number to what is next on the number sequence, I get the following error:

The Sales Header already exists. Identification fields and values: Document Type='Invoice'

If I follow the steps on this blog post

http://blogs.msdn.com/b/freddyk/archive/2009/05/28/handling-sales-orders-from-page-based-web-services-in-nav-2009sp1-and-rtm.aspx

I can create an invoice and then update the rest of the fields except for the invoice number.

Is there a way to use the web service to create an invoice with a custom invoice number?

Steve
  • 9,335
  • 10
  • 49
  • 81

1 Answers1

2

So apparently you first have to create an empty invoice with no details, then update it afterwards to add any fields that you require.

See: http://community.dynamics.com/product/nav/f/34/t/41703.aspx

Steve
  • 9,335
  • 10
  • 49
  • 81