Web Service Page 157 - Item Availability By Periods

helgefmi
Member Posts: 2
Hi!
I'm having trouble retreiving item availability per date for our products via the navision web service, which will be used to display a "available on <date>" message in our webshop for products that's not in stock. It looks like the page 157 "Item Availability By Periods" is the one I'm looking for, but I can't seem to query the service without getting errors.
The Web Service supports a ReadMultiple operation, which takes an argument "filter". "Filter" has two fields, Field and Criteria. Field must be one of "PeriodType" or "AmountType".
No matter what values I give the filter (or if I omit it completely), I receive a generic error that doesn't tell me anything about what's wrong:
I've tried passing "Day", "Quarter", "0", "1" etc. to PeriodType, and "Net Change", "Balance at Date", "0", "1" etc. to AmountType, to no avail. I don't find any combinations of these that gives me anything but the same error.
Does anyone know how to use this Page, or if there's some other methods I could use to get me the same data?
I'm having trouble retreiving item availability per date for our products via the navision web service, which will be used to display a "available on <date>" message in our webshop for products that's not in stock. It looks like the page 157 "Item Availability By Periods" is the one I'm looking for, but I can't seem to query the service without getting errors.
The Web Service supports a ReadMultiple operation, which takes an argument "filter". "Filter" has two fields, Field and Criteria. Field must be one of "PeriodType" or "AmountType".
No matter what values I give the filter (or if I omit it completely), I receive a generic error that doesn't tell me anything about what's wrong:
I think I need to install Employee Portal to get a better error, but I can't, since we're using Windows 7, and Employee Portal needs SharePoint, which only works on Windows Server.WebFault: Server raised fault: 'Metadata for object of type CodeUnit with id 6810 is in a failed state. This is caused by a previous exception:
Object of type CodeUnit with id 6810 could not be found.
I've tried passing "Day", "Quarter", "0", "1" etc. to PeriodType, and "Net Change", "Balance at Date", "0", "1" etc. to AmountType, to no avail. I don't find any combinations of these that gives me anything but the same error.
Does anyone know how to use this Page, or if there's some other methods I could use to get me the same data?
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