The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.
IMPORT Method (BLOB)
Imports a binary large object (BLOB).
[ImportName] := Blob.IMPORT([Name [, CommonDialog]])
The BLOB that you want to import.
Type: Text or code
The path and name of the BLOB that you want to import.
When you enter the path, consider the following shortcuts:
You can omit the drive letter if the command is located on the current drive.
You can omit the full path if the command is located in the current directory.
You can enter only the subdirectory name if the command is located in a subdirectory of the current directory.
Specifies whether you want to display an import dialog box before the BLOB is imported. This dialog box lets you select the file that you want to import. Based on the SubType Property (BLOB), only the relevant file types are listed, such as bitmap files (*.bmp), memo files (*.txt), or all files (*.*).
If the CommonDialog parameter is true, then Dynamics 365 displays the import dialog box. If the CommonDialog parameter is false (default), then Dynamics 365 does not display the import dialog box.
Property Value/Return Value
The name and path of the imported file.
If the return value is the file's name and path, then the BLOB was imported.
If the return value is an empty string, then the BLOB was not imported.