Codeunit 18122326 EOS004 AzFS Storage
Provides access to an Azure FileShare storage to up- and download files.
procedure GetSecretConfigurationKeys(): List of [Text[250]]
List[Text]
procedure GetConfigurationKeys(): List of [Text[250]]
List[Text]
procedure Initialize(NewServiceConfig: Record "EOS004 Service Config.")
Record "EOS004 Service Config."
procedure Silent(): Boolean
Returns true if this instance is configured to be silent.
Boolean
procedure Silent(val: Boolean)
Sets if this instance is to be silent.
Boolean
procedure ListEntries(var Entry: Record "EOS004 AzFS Entry")
Returns a list of all file system entries on the root level of the configured storage.
Entry Record "EOS004 AzFS Entry"
A temporary buffer that will contain the found entries.
procedure ListEntries(Path: Text; var Entry: Record "EOS004 AzFS Entry")
Returns a list of all file system entries on the specified path of the configured storage.
Path Text
The directory of which the entries are read. Provide an empty string to indicate the root level.
Entry Record "EOS004 AzFS Entry"
A temporary buffer that will contain the found entries.
procedure CreateDirectory(FullDirectoryPath: Text)
Creates a directory.
FullDirectoryPath Text
The full path (including all parents) of the directory to be created.
procedure CreateDirectory(FullDirectoryPath: Text; permissionKey: Text)
Creates a directory with a specific permission key.
FullDirectoryPath Text
The full path (including all parents) of the directory to be created.
permissionKey Text
The permission key to use.
procedure DeleteEntry(Entry: Record "EOS004 AzFS Entry")
Deletes a file system entry on the storage.
Entry Record "EOS004 AzFS Entry"
The entry to be deleted.
procedure DeleteDirectory(FullDirectoryPath: Text)
Deletes a directory on the storage. The directory must be empty before it can be deleted.
FullDirectoryPath Text
The full path (including all parents) of the directory to be deleted.
procedure DeleteFile(FullFilePath: Text)
Deletes a file on the storage.
FullFilePath Text
The full path (including all parents) of the file to be deleted.
procedure DownloadFile(FullFilePath: Text)
Starts a user-interactive download of the given file.
FullFilePath Text
The full path (including all parents) of the file to be downloaded.
procedure GetFileAsBlob(FullFilePath: Text; var TargetBlob: Codeunit "Temp Blob")
Downloads the given file (non-interactively) into a BLOB.
FullFilePath Text
The full path (including all parents) of the file to be downloaded.
TargetBlob Codeunit "Temp Blob"
The target blob instance where the file contents will be returned.
procedure GetProperties(var Entry: Record "EOS004 AzFS Entry")
Returns detailed properties / metadata of a given filesystem entry and updates the passed instance.
Entry Record "EOS004 AzFS Entry"
The filesystem entry for which properties should be returned. The fields used to identify the entry are “Entry Type” and “Full Path”. All the properties that are returned are then also stored in this instance.
procedure UploadFile(FullDirectoryPath: Text; Filename: Text; var SourceBlob: Codeunit "Temp Blob")
Uploads a file to the storage.
FullDirectoryPath Text
The directory where to place the file.
Filename Text
The name to give to the uploaded file.
SourceBlob Codeunit "Temp Blob"
The contents of the file to be uploaded.
procedure UploadFile(FullFilePath: Text; var SourceBlob: Codeunit "Temp Blob")
Uploads a file to the storage.
FullFilePath Text
The full path (including all parents) of the file to be uploaded.
SourceBlob Codeunit "Temp Blob"
The contents of the file to be uploaded.
procedure UploadFileWithPermissionKey(FullDirectoryPath: Text; Filename: Text; var SourceBlob: Codeunit "Temp Blob"; permissionKey: Text)
Uploads a file to the storage using a specific permission key.
FullDirectoryPath Text
The directory where to place the file.
Filename Text
The name to give to the uploaded file.
SourceBlob Codeunit "Temp Blob"
The contents of the file to be uploaded.
permissionKey Text
The permission key to assign to the file.
procedure UploadFileWithPermissionKey(FullFilePath: Text; var SourceBlob: Codeunit "Temp Blob"; permissionKey: Text)
Uploads a file to the storage using a specific permission key.
FullFilePath Text
The full path (including all parents) of the file to be uploaded.
SourceBlob Codeunit "Temp Blob"
The contents of the file to be uploaded.
permissionKey Text
The permission key to assign to the file.
procedure CopyFile(FromFullPath: Text; ToDirectoryFullPath: Text)
FromFullPath Text
ToDirectoryFullPath Text
procedure CopyFile(FromFullPath: Text; ToDirectoryFullPath: Text; NewFilename: Text)
FromFullPath Text
ToDirectoryFullPath Text
NewFilename Text
procedure CopyFileWithPermissionKey(FromFullPath: Text; ToDirectoryFullPath: Text; permissionKey: Text)
FromFullPath Text
ToDirectoryFullPath Text
permissionKey Text
procedure CopyFileWithPermissionKey(FromFullPath: Text; ToDirectoryFullPath: Text; NewFilename: Text; permissionKey: Text)
FromFullPath Text
ToDirectoryFullPath Text
NewFilename Text
permissionKey Text
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.