Codeunit 419 File Management in 17
- App
- Base Application
Versions171819202122232425262728latest
Source29
Procedures, 73
| Name | Parameters | Returns | Access | Obsolete | |||
|---|---|---|---|---|---|---|---|
| BLOBImport | (var Codeunit Temp Blob, Text) | Text | public | - | |||
| BLOBImportWithFilter | (var Codeunit Temp Blob, Text, Text, Text, Text) | Text | public | - | |||
| BLOBExportWithEncoding | (var Codeunit Temp Blob, Text, Boolean, TextEncoding) | Text | public | - | |||
| BLOBExport | (var Codeunit Temp Blob, Text, Boolean) | Text | public | - | |||
| ServerTempFileName | (Text) | Text | public | - | |||
| ClientTempFileName | (Text) | Text | public | Pending 17.3 | |||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| CreateClientTempSubDirectory | () | Text | public | Pending 17.3 | |||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| DownloadTempFile | (Text) | Text | public | - | |||
| UploadFileSilent | (Text) | Text | public | Pending 17.3 | |||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| UploadFileSilentToServerPath | (Text, Text) | Text | public | Pending 17.3 | |||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| UploadFileToServer | (Text) | Text | public | Pending 17.3 | |||
| IsLocalFileSystemAccessible always returns false, please use the UploadFile procedure. | |||||||
| UploadFile | (Text[50], Text) | Text | public | - | |||
| UploadFileWithFilter | (Text[50], Text, Text, Text) | Text | public | - | |||
| Magicpath | () | Text | public | - | |||
| DownloadHandler | (Text, Text, Text, Text, Text) | Boolean | public | - | |||
| DownloadFromStreamHandler | (InStream, Text, Text, Text, Text) | Boolean | public | - | |||
| DownloadToFile | (Text, Text) | public | Pending 17.3 | ||||
| IsLocalFileSystemAccessible always returns false, please use the DownloadHandler(ServerFileName, '', '', '', ClientFileName) procedure. | |||||||
| AppendAllTextToClientFile | (Text, Text) | public | Pending 17.3 | ||||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| MoveAndRenameClientFile | (Text, Text, Text) | Text | public | Pending 17.3 | |||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| CreateClientFile | (Text) | public | Pending 17.3 | ||||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| DeleteClientFile | (Text) | Boolean | public | Pending 17.3 | |||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| CopyClientFile | (Text, Text, Boolean) | public | Pending 17.3 | ||||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| ClientFileExists | (Text) | Boolean | public | Pending 17.3 | |||
| IsLocalFileSystemAccessible always returns false, this procedure will always return false. This procedure will be removed. | |||||||
| ClientDirectoryExists | (Text) | Boolean | public | Pending 17.3 | |||
| IsLocalFileSystemAccessible always returns false, this procedure will always return false. This procedure will be removed. | |||||||
| CreateClientDirectory | (Text) | public | Pending 17.3 | ||||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| DeleteClientDirectory | (Text) | public | Pending 17.3 | ||||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| UploadClientDirectorySilent | (Text, Text, Boolean) | Text | public | Pending 17.3 | |||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| MoveFile | (Text, Text) | public | Pending 17.3 | ||||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| CopyServerFile | (Text, Text, Boolean) | public | - | ||||
| ServerFileExists | (Text) | Boolean | public | - | |||
| DeleteServerFile | (Text) | Boolean | public | - | |||
| ServerDirectoryExists | (Text) | Boolean | public | - | |||
| ServerCreateDirectory | (Text) | public | - | ||||
| ServerCreateTempSubDirectory | () | Text | public | - | |||
| ServerRemoveDirectory | (Text, Boolean) | public | - | ||||
| GetFileName | (Text) | Text | public | - | |||
| GetSafeFileName | (Text) | Text | public | - | |||
| GetFileNameWithoutExtension | (Text) | Text | public | - | |||
| HasExtension | (Text) | Boolean | public | - | |||
| GetFileNameMimeType | (Text) | Text | public | - | |||
| GetDirectoryName | (Text) | Text | public | - | |||
| GetClientDirectoryFilesList | (var Record Name/Value Buffer, Text) | public | Pending 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) | Boolean | public | Pending 17.3 | |||
| IsLocalFileSystemAccessible always returns false and this procedure will always throw an error. | |||||||
| GetServerFileProperties | (Text, var Date, var Time, var BigInteger) | Boolean | public | - | |||
| CombinePath | (Text, Text) | Text | public | - | |||
| BLOBImportFromServerFile | (var Codeunit Temp Blob, Text) | public | - | ||||
| BLOBExportToServerFile | (var Codeunit Temp Blob, Text) | public | - | ||||
| InstreamExportToServerFile | (InStream, Text) | Text | public | - | |||
| CreateAndWriteToServerFile | (Text, Text) | Text | public | - | |||
| GetToFilterText | (Text, Text) | Text | public | - | |||
| GetExtension | (Text) | Text | public | - | |||
| OpenFileDialog | (Text[50], Text, Text) | Text | public | Pending 17.3 | |||
| The local file system is no longer accessible. Please use the UploadFile procedure. | |||||||
| SaveFileDialog | (Text[50], Text, Text) | Text | public | Pending 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) | Boolean | public | Pending 17.3 | |||
| The local file system is no longer accessible and this procedure will always return false. | |||||||
| IsLocalFileSystemAccessible | () | Boolean | public | Pending 17.3 | |||
| The windows client type has been retired. This procedure will always return false. | |||||||
| IsValidFileName | (Text) | Boolean | public | - | |||
| ValidateFileExtension | (Text, Text) | public | - | ||||
| CreateFileNameWithExtension | (Text, Text) | Text | public | - | |||
| Ansi2SystemEncoding | (OutStream, InStream) | public | - | ||||
| Ansi2SystemEncodingTxt | (OutStream, Text) | public | - | ||||
| BrowseForFolderDialog | (Text[50], Text, Boolean) | Text | public | Pending 17.3 | |||
| The procedure uses .NET which does not function on non-Windows client types. | |||||||
| StripNotsupportChrInFileName | (Text) | Text | public | - | |||
| ExportImage | (Text, Text) | public | - | ||||
| IsClientDirectoryEmpty | (Text) | Boolean | public | - | |||
| IsServerDirectoryEmpty | (Text) | Boolean | public | - | |||
| GetFileContent | (Text) | Text | public | Pending 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) | Text | public | - | |||
| GetFileContents | (Text, TextEncoding) | Text | public | - | |||
| IsAllowedPath | (Text, Boolean) | Boolean | public | - | |||
| SaveStreamToFileServerFolder | (var Codeunit Temp Blob, Text, Text, Text) | Text | public | Pending 17.0 | |||
| Use the DownloadFromStream function to save the content of a stream locally. | |||||||
| MoveAndRenameServerFile | (Text, Text, Text) | public | Pending 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. | |||||||
Events, 4
| Kind | Name | Parameters | Obsolete |
|---|---|---|---|
| Integration event | OnAfterGetToFilterTextSetOutExt | (Text, var Text) | - |
| Integration event | OnBeforeDownloadHandler | (var Text, Text, Text, var Boolean) | - |
| Integration event | OnBeforeUploadFileWithFilter | (var Text, Text[50], Text, Text, Text, var Boolean) | - |
| Integration event | OnBeforeDownloadFromStreamHandler | (var Text, Text, InStream, var Boolean) | - |