Bearbeiten

Teilen über


FileName Property

Version: Available or changed with runtime version 1.0.

Sets the name of the external file to read data from or write data to an XmlPort.

Applies to

  • Xml Port

Syntax

FileName = 'File.txt';

Remarks

The FileName property must be set to a valid file name or a run-time error occurs.

This property can be set dynamically by using the FILENAME Method (XMLport). Using this method together with the Import method, you can create XMLports that are dynamic. This means that they can determine whether data is input or output at run time, and the name of the external file to read from or write to can also be set at run time.

If FileName is blank, then a default request options page tab will be created, where this property can be set at run time. If no name is specified or the UseRequestPage Property is set to false, then a run-time error occurs.

Note

In the Business Central Web client, because web browser restrictions, the file name cannot be set. Users will have to manually select the file when the XMLport is run.

IMPORT Method (XMLport)
FILENAME Method (XMLport)
UseRequestPage Property