Codeunit 419 File Management in 18

App
Base Application

Procedures, 74Events, 4

Versions171819202122232425262728latest

Source29

Procedures, 74

NameParametersReturnsAccessObsolete
BLOBImport(var Codeunit Temp Blob, Text)Textpublic-
BLOBImportWithFilter(var Codeunit Temp Blob, Text, Text, Text, Text)Textpublic-
BLOBExportWithEncoding(var Codeunit Temp Blob, Text, Boolean, TextEncoding)Textpublic-
BLOBExport(var Codeunit Temp Blob, Text, Boolean)Textpublic-
ServerTempFileName(Text)Textpublic-
ClientTempFileName(Text)TextpublicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
CreateClientTempSubDirectory()TextpublicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
DownloadTempFile(Text)Textpublic-
UploadFileSilent(Text)TextpublicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
UploadFileSilentToServerPath(Text, Text)TextpublicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
UploadFileToServer(Text)TextpublicPending 17.3
IsLocalFileSystemAccessible always returns false, please use the UploadFile procedure.
UploadFile(Text[50], Text)Textpublic-
UploadFileWithFilter(Text[50], Text, Text, Text)Textpublic-
Magicpath()Textpublic-
DownloadHandler(Text, Text, Text, Text, Text)Booleanpublic-
DownloadFromStreamHandler(InStream, Text, Text, Text, Text)Booleanpublic-
DownloadToFile(Text, Text)publicPending 17.3
IsLocalFileSystemAccessible always returns false, please use the DownloadHandler(ServerFileName, '', '', '', ClientFileName) procedure.
AppendAllTextToClientFile(Text, Text)publicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
MoveAndRenameClientFile(Text, Text, Text)TextpublicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
CreateClientFile(Text)publicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
DeleteClientFile(Text)BooleanpublicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
CopyClientFile(Text, Text, Boolean)publicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
ClientFileExists(Text)BooleanpublicPending 17.3
IsLocalFileSystemAccessible always returns false, this procedure will always return false. This procedure will be removed.
ClientDirectoryExists(Text)BooleanpublicPending 17.3
IsLocalFileSystemAccessible always returns false, this procedure will always return false. This procedure will be removed.
CreateClientDirectory(Text)publicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
DeleteClientDirectory(Text)publicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
UploadClientDirectorySilent(Text, Text, Boolean)TextpublicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
MoveFile(Text, Text)publicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
CopyServerFile(Text, Text, Boolean)public-
ServerFileExists(Text)Booleanpublic-
DeleteServerFile(Text)Booleanpublic-
ServerDirectoryExists(Text)Booleanpublic-
ServerCreateDirectory(Text)public-
ServerCreateTempSubDirectory()Textpublic-
ServerRemoveDirectory(Text, Boolean)public-
GetFileName(Text)Textpublic-
GetSafeFileName(Text)Textpublic-
GetFileNameWithoutExtension(Text)Textpublic-
HasExtension(Text)Booleanpublic-
GetFileNameMimeType(Text)Textpublic-
GetDirectoryName(Text)Textpublic-
GetClientDirectoryFilesList(var Record Name/Value Buffer, Text)publicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
GetServerDirectoryFilesList(var Record Name/Value Buffer, Text)public-
GetServerDirectoryFilesListInclSubDirs(var Record Name/Value Buffer, Text)public-
GetClientFileProperties(Text, var Date, var Time, var BigInteger)BooleanpublicPending 17.3
IsLocalFileSystemAccessible always returns false and this procedure will always throw an error.
GetServerFileProperties(Text, var Date, var Time, var BigInteger)Booleanpublic-
CombinePath(Text, Text)Textpublic-
BLOBImportFromServerFile(var Codeunit Temp Blob, Text)public-
BLOBExportToServerFile(var Codeunit Temp Blob, Text)public-
InstreamExportToServerFile(InStream, Text)Textpublic-
CreateAndWriteToServerFile(Text, Text)Textpublic-
GetToFilterText(Text, Text)Textpublic-
GetExtension(Text)Textpublic-
OpenFileDialog(Text[50], Text, Text)TextpublicPending 17.3
The local file system is no longer accessible. Please use the UploadFile procedure.
SaveFileDialog(Text[50], Text, Text)TextpublicPending 17.3
The local file system is no longer accessible. The procedure will always return an empty string. This procdure will be removed.
SelectFolderDialog(Text, var Text)BooleanpublicPending 17.3
The local file system is no longer accessible and this procedure will always return false.
IsLocalFileSystemAccessible()BooleanpublicPending 17.3
The windows client type has been retired. This procedure will always return false.
IsValidFileName(Text)Booleanpublic-
ValidateFileExtension(Text, Text)public-
CreateFileNameWithExtension(Text, Text)Textpublic-
Ansi2SystemEncoding(OutStream, InStream)public-
Ansi2SystemEncodingTxt(OutStream, Text)public-
BrowseForFolderDialog(Text[50], Text, Boolean)TextpublicPending 17.3
The procedure uses .NET which does not function on non-Windows client types.
StripNotsupportChrInFileName(Text)Textpublic-
ExportImage(Text, Text)public-
IsClientDirectoryEmpty(Text)Booleanpublic-
IsServerDirectoryEmpty(Text)Booleanpublic-
GetFileContent(Text)TextpublicPending 17.0
GetFileContent will be replaced with GetFileContents. This currently uses InStream.ReadText() which only returns the stream contents up to the first line break character.
GetFileContents(Text)Textpublic-
GetFileContents(Text, TextEncoding)Textpublic-
IsAllowedPath(Text, Boolean)Booleanpublic-
SaveStreamToFileServerFolder(var Codeunit Temp Blob, Text, Text, Text)TextpublicPending 17.0
Use the DownloadFromStream function to save the content of a stream locally.
MoveAndRenameServerFile(Text, Text, Text)publicPending 17.0
Server files should not be edited directly on the server. Instead, use the DownloadFromStream function to get a local copy of the file on the server.
AppendFileNameWithIndex(Text, Integer)Textpublic-

Events, 4

KindNameParametersObsolete
Integration eventOnAfterGetToFilterTextSetOutExt(Text, var Text)-
Integration eventOnBeforeDownloadHandler(var Text, Text, Text, var Boolean)-
Integration eventOnBeforeUploadFileWithFilter(var Text, Text[50], Text, Text, Text, var Boolean)-
Integration eventOnBeforeDownloadFromStreamHandler(var Text, Text, InStream, var Boolean)-