Insert Dimension Set Entry Via Webservice

aadams
Member Posts: 19
I have a webservice that imports sales invoices from our order management system into NAV 2013 using pages 43 "Sales Invoice" and 47 "Sales Invoice Subform". I now need to insert a global dimension value on each sales line, but can't seem to get that to work and the only examples I find to insert dimension sets refer to codeunit 408, which cannot be exposed as a webservice because its internal use of a record type object.
I tried to expose the page 480 "Edit Dimension Set Entries" and page 479 "Dimension Set Entries" but I get 404 errors when trying to call the Create method.
Is there a way to do this via webservice?
I tried to expose the page 480 "Edit Dimension Set Entries" and page 479 "Dimension Set Entries" but I get 404 errors when trying to call the Create method.
Is there a way to do this via webservice?
0
Comments
-
Put your values into a temp table of type 480: TempDimSetEntry
Then call:
NewDimID := DimMgt.GetDimensionSetID(TempDimSetEntry);
The DimMgt.GetDimensionSetID will automatically add missing entries.Bardur Knudsen
Microsoft - Dynamics NAV0 -
When inserting into TempDimSetEntry make sure to do TempDimSetEntry.INSERT(TRUE);________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0 -
Thanks for the replies, however I do not have a developer license so am limited to either paying for someone to write a codeunit I can expose as a webservice or exposing a page as webservice, which does not give me access to any custom functions in the page.
Is there a way to do this without a dev license?0 -
Well. To get back to your original question on inserting global dimensions: It should be sufficient just to enter the dimension values in the two global dimension fields. That will automatically update the dimension sets.Bardur Knudsen
Microsoft - Dynamics NAV0
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