# Direction Property
> Version: _Available or changed with runtime version 1.0._
Sets the XmlPort to import, export, or import and export data in XML format.
## Applies to
 Xml Port
## Property value
Value|Available or changed with|Description
Import|runtime version 1.0|The XMLPort only imports data.
Export|runtime version 1.0|The XMLPort only exports data.
Both|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.
> NOTE
> 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.|
## Syntax
```al
Direction = Import;
```
## Related information
devenv-properties

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. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-direction-property/
