I want to search in NAV2009 through a webservice in 2 tables.
For Example: I set a filter at the field email in the customer table. Then I want to show the sales order from the found customer(s).
There are more possibilities to do this:
- Usage of 2 webservices so I can first search for the customer(s). With the outcome I search for the sales orders.
- Add the field email in the sales header table so I have 1 table to search in.
Is it possible to leave the tables as they are and use 1 webservice to do the trick?
Can a codeunit be used to extend the functionality of the page webservice? And how is this done?
Thanks in advance.
0
Answers
Then you will have this method available on the customer page.
but.... - you might not want to go with a page here - you might just want to expose a codeunit with a method, which returns a XMLPort returning the sales orders you are searching for - Pages might look like the easy way to go, but I think you often should consider whether the WS contract really is for CRUD purposes before just exposing the page.
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.
What do you mean by returning the sales orders with a xmlport?
Just export the sales orders with an xmlport to a xml file and then read the contents of xml file?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I have found the website and will look at it.