Submitting SO through Web Service with custom order number

tedcjohnstontedcjohnston Member Posts: 41
edited 2010-02-09 in NAV Three Tier
Working with our web site designer on submitting sales orders to NAV via web services. We are running NAV 2009 SP1 executables with 4.0SP1 objects.
We have it working but for one issue. The web site is not "online" with NAV so creates its own order number. It later submits this order to NAV. I would like the order in NAV to have the same order number as the web site to minimize confusion with our customers.

I've been unable to find an example of this in the various blog postings. If we create then try to update the order number, we trip the standard code that does not allow a rename of the sales header:

OnRename()
ERROR(Text003,TABLECAPTION);

Can't figure out how to create an order with a defined number. I have set the number series to allow manual numbering.

Thanks in advance for your help.

Ted
"There are only two truly infinite things: the universe and stupidity. And I am unsure about the universe." - Albert Einstein
Corollary- Build and idiot proof system and nature will build a better idiot.

Answers

  • freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    You would have to set the Order number on the first roundtrip when doing the actual create - could this be the problem?
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
  • tedcjohnstontedcjohnston Member Posts: 41
    Works now. Not sure what code change worked or if it was just a timing issue between changes in NAV and the service tier.

    Thanks for your help.
    "There are only two truly infinite things: the universe and stupidity. And I am unsure about the universe." - Albert Einstein
    Corollary- Build and idiot proof system and nature will build a better idiot.
  • AlexWileyAlexWiley Member Posts: 230
    Out of curiosity, since we are going to be trying to do the exact same thing here, how much work did you do in Navision to get this done? To me, initially, it seems like most of it can be handled on the web side if we just set up and expose a sales invoice page as a webservice, but we are still waiting for our service tier license so we haven't been able to try it out yet.
Sign In or Register to comment.