{"title":"Xmlport data type","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/xmlport/xmlport-data-type/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/xmlport/xmlport-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/xmlport/xmlport-data-type","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"XmlPorts are used to export or import data between an external source and a Microsoft Dynamics Business Central database.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Static methods","slug":"static-methods","at":182,"chars":503},{"level":2,"title":"Instance methods","slug":"instance-methods","at":685,"chars":2209},{"level":2,"title":"Related information","slug":"related-information","at":2894,"chars":147}],"text":"> Version: _Available or changed with runtime version 1.0._\nXmlPorts are used to export or import data between an external source and a Microsoft Dynamics Business Central database.\n## Static methods\nThe following methods are available on the Xmlport data type.\nMethod name|Description\nExport(Integer, var OutStream [, var Record])<xmlport-export-method>|Creates an XML data stream (XML document) and sends it to a chosen destination.\nImport(Integer, var InStream [, var Record])<xmlport-import-method>|Reads and parses an incoming XML data stream (XML document).\nRun(Integer [, Boolean] [, Boolean] [, var Record])<xmlport-run-method>|Loads and executes the XmlPort that you specify.\n## Instance methods\nThe following methods are available on instances of the Xmlport data type.\nMethod name|Description\nxmlportinstance-break-method|Exits from a loop or a trigger in a data item trigger of a report or XmlPort.\nxmlportinstance-breakunbound-method|Exits from a loop on records in an XmlPort trigger.\nxmlportinstance-currentpath-method|Returns the CurrentPath for a given node, used when exporting an XmlPort.\nxmlportinstance-export-method|Creates an XML data stream (XML document) and sends it to a chosen destination.\nFieldDelimiter([Text])<xmlportinstance-fielddelimiter-method>|Gets and sets the FiledDelimiter used when running, importing or exporting the XmlPort.\nFieldSeparator([Text])<xmlportinstance-fieldseparator-method>|Gets and sets the FieldSeparator used when running, importing or exporting the XmlPort.\nFilename([Text])<xmlportinstance-filename-method>|Gets the current value of the FileName Property of an XmlPort and sets this property to a new value.\nxmlportinstance-import-method|Reads and parses an incoming XML data stream (XML document).\nImportFile([Boolean])<xmlportinstance-importfile-method>|Gets or sets the ImportFile property.\nxmlportinstance-quit-method|Aborts the processing of a report or XmlPort.\nRecordSeparator([Text])<xmlportinstance-recordseparator-method>|Gets and sets the RecordSeparator used when running, importing or exporting the XmlPort.\nxmlportinstance-run-method|Loads and executes the XmlPort that you specify.\nSetDestination(var OutStream)<xmlportinstance-setdestination-method>|Sets the destination OutStream of the XmlPort.\nSetSource(var InStream)<xmlportinstance-setsource-method>|Sets the source InStream of the XmlPort.\nSetTableView(var Record)<xmlportinstance-settableview-method>|Applies the table view on the current record as the table view for the page, report, or XmlPort.\nxmlportinstance-skip-method|Skips the current iteration of the current report or XmlPort.\nTableSeparator([Text])<xmlportinstance-tableseparator-method>|Gets and sets the TableSeparator used when running, importing or exporting the XmlPort.\nxmlportinstance-textencoding-method|Gets and sets the TextEncoding used when running, importing or exporting the XmlPort.\n## Related information\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>\n../../devenv-xmlport-overview"}