{"title":"Direction Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-direction-property/","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/properties/devenv-direction-property, 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/properties/devenv-direction-property","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":"Sets the XmlPort to import, export, or import and export data in XML format.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":137,"chars":24},{"level":2,"title":"Property value","slug":"property-value","at":161,"chars":780},{"level":2,"title":"Syntax","slug":"syntax","at":941,"chars":40},{"level":2,"title":"Related information","slug":"related-information","at":981,"chars":40}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets the XmlPort to import, export, or import and export data in XML format.\n## Applies to\n Xml Port\n## Property value\nValue|Available or changed with|Description\nImport|runtime version 1.0|The XMLPort only imports data.\nExport|runtime version 1.0|The XMLPort only exports data.\nBoth|runtime version 1.0|The XMLPort can import and export data.<br /><br /> If the XMLPort uses a request page, as specified by the UseRequestPage Property, then an option appears on the request page that enables the users to choose to import or export data. This is the default value.\n> NOTE\n> Request pages show when the XMLport is run from an action page or the Run method in AL code. Request pages do not show with Export or Import methods<br /><br /> If the XMLPort does not use a request, then XMLPort defaults to Import, unless you specify the direction by Import parameter of the Run method.|\n## Syntax\n```al\nDirection = Import;\n```\n## Related information\ndevenv-properties"}