How to set date filter using navision 2009 sp1 web service ?

smnehal
Member Posts: 14
Hi,
I am using Navison 2009 SP1 and set the dat filter but it resturn zero.
following are the c sharp code.
CustomerRef.Customer_Service cservice = new CustomerRef.Customer_Service();
cservice.UseDefaultCredentials = true;
CustomerRef.Customer_Filter filter = new CustomerRef.Customer_Filter();
filter.Field = CustomerRef.Customer_Last_Date_Modified;
filter.Criteria = "=06/04/10";
CustomerRef.Customer_Filter[] filters = new CustomerRef.Customer_Filter[] { filter };
CustomerRef.Customer[] customers = cservice.ReadMultiple(filters, null, 0);
customers is getting no result;
How can i filter on date using Navision web service.
Thanks
I am using Navison 2009 SP1 and set the dat filter but it resturn zero.
following are the c sharp code.
CustomerRef.Customer_Service cservice = new CustomerRef.Customer_Service();
cservice.UseDefaultCredentials = true;
CustomerRef.Customer_Filter filter = new CustomerRef.Customer_Filter();
filter.Field = CustomerRef.Customer_Last_Date_Modified;
filter.Criteria = "=06/04/10";
CustomerRef.Customer_Filter[] filters = new CustomerRef.Customer_Filter[] { filter };
CustomerRef.Customer[] customers = cservice.ReadMultiple(filters, null, 0);
customers is getting no result;
How can i filter on date using Navision web service.
Thanks
0
Comments
-
I use the Linq to set the Date filter.
thanks any way.0 -
Hello,
I have the same problem, could perhaps tell how you set teh filter using Linq? Thanks for your help.0 -
Hi,
Found the answer.
you must ensure that the Windows user account that is to be used to execute the task has a User Personalisation record with the correct Language ID.7177 is the English - Southern Africa language ID and If you do not have a record, or you use the English (United States) setting then you will find date fields are validated using the US M/dd/YYYY date format. so either change/add a record to the User Personalisation table or format your date string like this mmddyyyy0
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