Udostępnij za pośrednictwem


XMLports in Microsoft Dynamics NAV

XMLports are used to export or import data between an external source and a Dynamics NAV database. Sharing data between different computer systems is seamless when it is shared in XML format. Working with XML files can be tedious so the details of how the XML file is handled are encapsulated in XMLports.

To use an XMLport to import or export data, you first design the XMLport in the XMLport Designer window and set some properties. You can run the XMLport from Object Designer or create a codeunit to run the XMLport. For more information about how to run XMLports in a codeunit, see How to: Create Codeunits to Run XMLports. For information about how to run XMLports in Object Designer, see How to: Run an XMLport from Object Designer.

If you are upgrading from an earlier version of Dynamics NAV and used Dataports in the earlier version, then you should analyze the functionality of each Dataport and re-create that functionality in Microsoft Dynamics NAV 2018 using XMLports.

Introducing XMLports

The following table lists topics that provide detailed information about how to use XMLports.

To See
Read about the XMLport Designer window. XMLport Designer
Read about triggers available for XMLports and XMLport elements. XMLport Triggers
Learn how to design an XMLport for import or export. - Designing XMLports
- How to: Create XMLports
Learn how to create codeunits to run XMLports. How to: Create Codeunits to Run XMLports
Learn about designing request pages for XMLports Request Pages (XMLPorts)
Learn how to run XMLports from Object Designer. How to: Run an XMLport from Object Designer
Read about XMLport data types and functions. XMLport Data Type

XMLports Walkthroughs

The following table lists topics that provide information about how to use XMLports to create scenario based applications.

To See
Learn how to export data from a Dynamics NAV table into an XML document. Walkthrough: Exporting Data from Tables to XML Documents
Learn how to import data from an XML document to multiple tables in a Dynamics NAV database. The XML document contains data that belongs in two different tables in the database. Walkthrough: Inserting Data from XML Documents to Multiple Tables
Learn how to export data from tables to CSV (comma separated value) files. Walkthrough: Exporting Data from Tables to CSV Files
Learn how to import data from text files. Walkthrough: Importing Data from Text Files to Tables

See Also

Designing XMLports