Hi,
I need som advise for solving that problem/issue.
I did develop a a.NET app that will communicate with Navisio 3.7 by using MSMQ and NAS.
I did managed export of Items/products from Navision, but I have problemwith import of orders and orderlines to Navision, since the navision has not XMLPORt( this was my first idea) so I think that I can make use of DATAPORT, is it a WRONG IDEA?
My idea is that my .NET app delivering a file( XML or TXT) that including Ortders and orderlines and my .NET app can call a codeunit that retrieve this file and this coseunijnt calling the proper DATAPORT to do this import job.
How realistic is this IDEA?
I am not that experienced in NAVISION so may be I am talking CREASY here.
Any help will be appreciated.
0
Comments
It’s a common way to solve some problems of import / export
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
I am Devi.
For one of our client some of the data from outside application should flow into navision.
Basically purchase orders and sales orders should be imported/exported from/to navision.
I am trying to use xmlports in navision,but this is the first time i am using them.so not so familiar
Can anyone suggest me the bestway to do this and how to do this.
Waiting for reply soon as it is little critical.
Thanks and Regards,
Devi.
Then the last thing you can do is search for a file called 'devguide.chm', it's somewhere on the product CD. This file has code samples to make NAS work, and IIRC there's also a section about using the XMLDOM automation.
Use the search, because there are MANY postings about this subject from when we didn't have XMLPorts.
RIS Plus, LLC
I am using microsoft nav4.0 sp3 and with sqlserver option .
I am able to use xmlports
but dont know how to do ,can anyone just help me out .
devi.
RIS Plus, LLC
one simple approach might be to directly ad-hoc insert-update data on the NAV's SQL tabel level (either on actual or staging tables!) and afterward you just call some codeunit to validate NAV's business logic triggers upon inserted records ...
More serious longterm solution would of course be to use MSMQ & NAS interaction.
Regards,
A.
you can use XMLPort 8000 -- Purchase Order but you must create codeuint
to import or export the data from or to XMLPort
use this code in codeunit
IF NOT EXISTS ('Path.xml') THEN
ERROR ('xml document file does not exist');
testfile.OPEN('Path.xml');
testfile.CREATEINSTREAM(filestr);
XMLPORT.IMPORT(8000, filestr);// you can change to export
testfile.CLOSE;
MESSAGE('Done');
//filestr=InStream
//testfile=File
you can use this code to import and export any XMLport i mean if you create new XMLPort