Codeunit 18122349 EOS004 Azure FileShare FS

Codeunit 18122349 EOS004 Azure FileShare FS

Provides access to an Azure FileShare storage to up- and download files.

Methods

GetSecretConfigurationKeys

procedure GetSecretConfigurationKeys(): List of [Text[250]]

Parameters / Return Value

  • Returns List[Text]

GetConfigurationKeys

procedure GetConfigurationKeys(): List of [Text[250]]

Parameters / Return Value

  • Returns List[Text]

Initialize

procedure Initialize(NewServiceConfig: Record "EOS004 Service Config.")

Parameters / Return Value

  • NewServiceConfig Record "EOS004 Service Config."

Silent

procedure Silent(): Boolean

Returns true if this instance is configured to be silent.

Parameters / Return Value

  • Returns Boolean

Silent

procedure Silent(val: Boolean)

Sets if this instance is to be silent.

Parameters / Return Value

  • val Boolean

GetFiles

procedure GetFiles(Path: Text; var Entry: Record "EOS004 AzFS Entry")

Returns a list of all file system entries on the specified path of the configured storage.

Parameters / Return Value

  • Path Text

    The folder 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.


CreateFolder

procedure CreateFolder(FullFolderPath: Text)

Creates a folder.

Parameters / Return Value

  • FullFolderPath Text

    The full path (including all parents) of the folder to be created.


CreateFolder

procedure CreateFolder(FullFolderPath: Text; permissionKey: Text)

Creates a folder with a specific permission key.

Parameters / Return Value

  • FullFolderPath Text

    The full path (including all parents) of the folder to be created.

  • permissionKey Text

    The permission key to use.


DeleteEntry

procedure DeleteEntry(Entry: Record "EOS004 AzFS Entry")

Parameters / Return Value

  • Entry Record "EOS004 AzFS Entry"

DeleteFolder

procedure DeleteFolder(FullFolderPath: Text; Force: Boolean)

Deletes a folder on the storage. The folder must be empty before it can be deleted.

Parameters / Return Value

  • FullFolderPath Text

    The full path (including all parents) of the folder to be deleted.

  • Force Boolean


DeleteFile

procedure DeleteFile(FullFilePath: Text)

Deletes a file on the storage.

Parameters / Return Value

  • FullFilePath Text

    The full path (including all parents) of the file to be deleted.


DownloadFile

procedure DownloadFile(FullFilePath: Text)

Starts a user-interactive download of the given file.

Parameters / Return Value

  • FullFilePath Text

    The full path (including all parents) of the file to be downloaded.


ReadFile

procedure ReadFile(FullFilePath: Text; var TempBlob: Codeunit "Temp Blob")

Downloads the given file (non-interactively) into a BLOB.

Parameters / Return Value

  • FullFilePath Text

    The full path (including all parents) of the file to be downloaded.

  • TempBlob Codeunit "Temp Blob"


GetProperties

procedure GetProperties(var Entry: Record "EOS004 AzFS Entry")

Returns detailed properties / metadata of a given filesystem entry and updates the passed instance.

Parameters / Return Value

  • 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.


UploadFile

procedure UploadFile(FullFolderPath: Text; Filename: Text; var SourceBlob: Codeunit "Temp Blob")

Uploads a file to the storage.

Parameters / Return Value

  • FullFolderPath Text

    The folder 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.


UploadFile

procedure UploadFile(FullFilePath: Text; var SourceBlob: Codeunit "Temp Blob")

Uploads a file to the storage.

Parameters / Return Value

  • 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.


UploadFileWithPermissionKey

procedure UploadFileWithPermissionKey(FullFolderPath: Text; Filename: Text; var SourceBlob: Codeunit "Temp Blob"; permissionKey: Text)

Uploads a file to the storage using a specific permission key.

Parameters / Return Value

  • FullFolderPath Text

    The folder 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.


UploadFileWithPermissionKey

procedure UploadFileWithPermissionKey(FullFilePath: Text; var SourceBlob: Codeunit "Temp Blob"; permissionKey: Text)

Uploads a file to the storage using a specific permission key.

Parameters / Return Value

  • 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.


CopyFile

procedure CopyFile(FromFullPath: Text; ToFullPath: Text)

Parameters / Return Value

  • FromFullPath Text

  • ToFullPath Text


CopyFile

procedure CopyFile(FromFullPath: Text; ToFolderFullPath: Text; NewFilename: Text)

Parameters / Return Value

  • FromFullPath Text

  • ToFolderFullPath Text

  • NewFilename Text


CopyFileWithPermissionKey

procedure CopyFileWithPermissionKey(FromFullPath: Text; ToFullPath: Text; permissionKey: Text)

Parameters / Return Value

  • FromFullPath Text

  • ToFullPath Text

  • permissionKey Text


CopyFileWithPermissionKey

procedure CopyFileWithPermissionKey(FromFullPath: Text; ToFolderFullPath: Text; NewFilename: Text; permissionKey: Text)

Parameters / Return Value

  • FromFullPath Text

  • ToFolderFullPath Text

  • NewFilename Text

  • permissionKey Text


RenameFile

procedure RenameFile(oldPath: Text; newPath: Text)

Parameters / Return Value

  • oldPath Text

  • newPath Text


MoveFile

procedure MoveFile(fromPath: Text; toPath: Text)

Parameters / Return Value

  • fromPath Text

  • toPath Text


MoveFolder

procedure MoveFolder(fromPath: Text; toPath: Text)

Parameters / Return Value

  • fromPath Text

  • toPath Text


GetFileAttributes

procedure GetFileAttributes(path: Text; var Result: Dictionary of [Text, Text])

Parameters / Return Value

  • path Text

  • Result Dictionary[Text,Text]



EOS Labs -