{"title":"XMLport overview","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/devenv-xmlport-overview/","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/devenv-xmlport-overview, 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/devenv-xmlport-overview","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":"Get an overview of the XMLport object in AL, which is composed of an XMLport schema, a request page, and properties, triggers, and code that you can extend.","date":"2026-08-24","meta":{"topic":"overview"},"outline":[{"level":2,"title":"XMLport object","slug":"xmlport-object","at":133,"chars":626},{"level":3,"title":"XMLport schema","slug":"xmlport-schema","at":385,"chars":374},{"level":2,"title":"Request page","slug":"request-page","at":759,"chars":300},{"level":2,"title":"XMLport properties, triggers, and code","slug":"xmlport-properties-triggers-and-code","at":1059,"chars":977},{"level":2,"title":"Related information","slug":"related-information","at":2036,"chars":251}],"text":"An XMLport is composed of the following items:\n An XMLport object\n An XMLport schema\n A Request page\n Properties, triggers, and code\n## XMLport object\nYou create an XMLport object in the AL Language development environment to define the schema of an XML document. You can export and import data between an external source and Business Central with XMLports. See devenv-xmlport-object.\n### XMLport schema\nTo define the underlying structure of the imported or exported document, you use the XMLport schema. An XMLport schema determines which data is exported from or imported to Business Central database tables and the format and structure of the files used. You build the XMLport schema by adding nodes. See Defining an XMLport schema<devenv-xmlport-schema>.\n## Request page\nRequest pages are dialog boxes that enable the user to set a filter on the data, sort the data, or choose whether to export or import the data. See devenv-request-pages.\n> NOTE\n> Unlike report request pages, XMLport request pages can't be bookmarked by users from the user interface.\n## XMLport properties, triggers, and code\nXMLport objects include triggers, methods, and properties that can be used to work with the object. See methods-auto/xmlport/xmlport-data-type and triggers-auto/xmlport/devenv-oninitxmlport-xmlport-trigger.\nWhen you design XMLports, set the value of the Format property (XMLports)<properties/devenv-format-property> and the properties/devenv-direction-property. The Format property (XMLports)<properties/devenv-format-property> indicates the type of file that you want to import or export. The properties/devenv-direction-property value indicates whether the XMLport is used for import or export.\nLearn more about data consistency and validation against possible errors when using XMLports in the blog post Importing and exporting valid data using XMLports in Dynamics 365 Business Central<https://cloudblogs.microsoft.com/dynamics365/it/2019/05/22/importing-and-exporting-valid-data-using-xmlports-in-dynamics-365-business-central/>.\n## Related information\ndevenv-xmlport-object\nDefining an XMLport schema<devenv-xmlport-schema>\ndevenv-using-namespaces-with-xmlports\ndevenv-request-pages\nmethods-auto/xmlport/xmlport-data-type\ntriggers-auto/xmlport/devenv-oninitxmlport-xmlport-trigger"}