Data-ports

JTMad
Member Posts: 2
We are trying to Automate input into Navision from our current Web-based system.
I am trying to use Data-ports to input new vendors into Navision as a simple test. I know how to do it using a Data-port but we have multiple companies and it seams that the Data-port update the current company the user has open by default. Is there a way using Data-ports and C/AL to read the text file and update the company specified in the text file. Or is there a was to specify which company the dataport updates and I can create a dataport for each one.
Also, I am new to Navison and C/AL programming, What book or websites would you recommend to help me get started?
Thanks for your help.
I am trying to use Data-ports to input new vendors into Navision as a simple test. I know how to do it using a Data-port but we have multiple companies and it seams that the Data-port update the current company the user has open by default. Is there a way using Data-ports and C/AL to read the text file and update the company specified in the text file. Or is there a was to specify which company the dataport updates and I can create a dataport for each one.
Also, I am new to Navison and C/AL programming, What book or websites would you recommend to help me get started?
Thanks for your help.
0
Comments
-
When you are inserting records into the current company you can simultaneously use the CHANGECOMPANY syntax and insert into the other company too.
Regards
SB.0 -
id try it with 2 dataports.
in the first one you just update your companies that are no more up to date.
you can write it in the c/al code of the data item in the pre data item to check for the company of the dataset in your textfile. if it is found, you can update it.
to create a new vendor do the same routine and just add it if u cannot find the vendor already.
but it seems a little more complicated with multiple vendors.
but it can be solved with checking more properties of the vendor (e.g. adress or zip coe, telephone)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