Xmlport Data Type

XmlPorts are used to export or import data between an external source and a Microsoft Dynamics Business Central database.

The following methods are available on the Xmlport data type.

Method name Description
Import(Integer, var InStream [, var Record]) Reads and parses an incoming XML data stream (XML document).
Export(Integer, var OutStream [, var Record]) Creates an XML data stream (XML document) and sends it to a chosen destination.
Run(Integer [, Boolean] [, Boolean] [, var Record]) Loads and executes the XmlPort that you specify.

The following methods are available on instances of the Xmlport data type.

Method name Description
CurrentPath() Returns the CurrentPath for a given node, used when exporting an XmlPort.
Export() Creates an XML data stream (XML document) and sends it to a chosen destination.
Import() Reads and parses an incoming XML data stream (XML document).
Run() Loads and executes the XmlPort that you specify.
FieldDelimiter([String]) Gets and sets the FiledDelimiter used when running, importing or exporting the XmlPort.
FieldSeparator([String]) Gets and sets the FieldSeparator used when running, importing or exporting the XmlPort.
RecordSeparator([String]) Gets and sets the RecordSeparator used when running, importing or exporting the XmlPort.
TableSeparator([String]) Gets and sets the TableSeparator used when running, importing or exporting the XmlPort.
Filename([String]) Gets the current value of the FileName Property of an XmlPort and sets this property to a new value.
TextEncoding([TextEncoding]) Gets and sets the TextEncoding used when running, importing or exporting the XmlPort.
SetSource(var InStream) Sets the source InStream of the XmlPort.
SetDestination(var OutStream) Sets the destination OutStream of the XmlPort.
ImportFile([Boolean]) Gets or sets the ImportFile property.
SetTableView(var Record) Applies the table view on the current record as the table view for the page, report, or XmlPort.
Break() Exits from a loop or a trigger in a data item trigger of a report or XmlPort.
BreakUnbound() Exits from a loop on records in an XmlPort trigger.
Skip() Skips the current iteration of the current report or XmlPort.
Quit() Aborts the processing of a report or XmlPort.

See Also

Getting Started with AL
Developing Extensions
XMLport Overview