IMPORTOBJECTS Function (Codeunit, Dataport, Form, MenuSuite, Page, Report, Table, XMLport)
Imports one or more objects from either a text file or an .xml file to the application.
IMPORTOBJECTS(FileName[, Format])
Parameters
- FileName
-
Type: Text
The path and name of the file from which you import objects.
- Format
-
Type: Integer
The type of the file from which you import objects. The valid values are 0 and 1. If you specify 0, then the file that you specify in the FileName parameter must be a text file. If you specify 1, then the file that you specify in the FileName parameter must be an .xml file. The default value is 0.
This function is not supported on the RoleTailored client.
This function is not supported for use with Microsoft Dynamics NAV Application Server.
This function achieves the same result as the Import item on the File menu in the Classic client.
After you import an object with this function, the object is not compiled. To run the object, you must first manually compile it.
For more information about file handling best practices, see File Handling.