Use Excel Import Def. Groups to update existing Axapta Data

_georget
Member Posts: 4
Hi all
I've successfully imported data from Excel into Axapta using Excel definition groups. However can these definition groups be used to update existing Axapta records (ie. We made a whole heap of changes to the description fields of our item inventory in excel and we want to update these changes to the same items in axapta).
Thanks for your help
George
I've successfully imported data from Excel into Axapta using Excel definition groups. However can these definition groups be used to update existing Axapta records (ie. We made a whole heap of changes to the description fields of our item inventory in excel and we want to update these changes to the same items in axapta).
Thanks for your help
George
0
Comments
-
Hi georget.
I would recommend you to create job to transfer your data to Axapta.
MikeR (Axapta developer)going to Europe0 -
Hi Mike
Under normal circumstances I would, however axapta aleady has sales order transactions on the items therefore I can't just recreate them. I need to find a way to transfer the changes that were made in excel into axapta. We have around about 4000 inventory items to import.
George0 -
OK georget.
So, what are you intend to change?
1 Item fields
2 Dimension fields
3 Or Invent Trans?
MikeR (Axapta developer)going to Europe0 -
Item Description, Item Price (Cost, Inventory, Sales), Colour, Item Group.0
-
Hi.
As far as I can see you only need to download some changes from Excel to Axapta
May be this code will help you
Define variables
COM application, workBooks, workSheets, currentWorkSheet, cell;
str fileName;
At first you need to get access to the Excel
fileName = WINApi::getOpenFileName(0, [("@SYS28576"+' (*.xls)'), '*.xls'],'', 'Open File whith data ');
application = new COM('Excel.application');
workBooks = application.workBooks();
workBooks.open(fileName);
workSheets = application.worksheets(); //Get access to the collection of worksheets
currentWorkSheet = workSheets.item(1);// Get access to the workSheets
Than you need to get access to the cell
cell = COM::createFromVariant(cellsOnSheet.item(curRow, 1));
cellValue = convertVariant2Str(cell.value());
Next select ItemId from Invent Table and update ItemName, Item Price,
Item Group and others
But better create special class for this, so you must done a lot of Checks.going to Europe0
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