Submitting SO through Web Service with custom order number

tedcjohnston
Member Posts: 41
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
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.
Corollary- Build and idiot proof system and nature will build a better idiot.
0
Answers
-
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.0 -
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.0 -
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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions