Codeunit 18122326 EOS004 AzFS Storage

Codeunit 18122326 EOS004 AzFS Storage

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

ListEntries

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

Returns a list of all file system entries on the root level of the configured storage.

Parameters / Return Value

  • Entry Record "EOS004 AzFS Entry"

    A temporary buffer that will contain the found entries.


ListEntries

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.

Parameters / Return Value

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


CreateDirectory

procedure CreateDirectory(FullDirectoryPath: Text)

Creates a directory.

Parameters / Return Value

  • FullDirectoryPath Text

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


CreateDirectory

procedure CreateDirectory(FullDirectoryPath: Text; permissionKey: Text)

Creates a directory with a specific permission key.

Parameters / Return Value

  • FullDirectoryPath Text

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

  • permissionKey Text

    The permission key to use.


DeleteEntry

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

Deletes a file system entry on the storage.

Parameters / Return Value

  • Entry Record "EOS004 AzFS Entry"

    The entry to be deleted.


DeleteDirectory

procedure DeleteDirectory(FullDirectoryPath: Text)

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

Parameters / Return Value

  • FullDirectoryPath Text

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


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.


GetFileAsBlob

procedure GetFileAsBlob(FullFilePath: Text; var TargetBlob: 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.

  • TargetBlob Codeunit "Temp Blob"

    The target blob instance where the file contents will be returned.


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(FullDirectoryPath: Text; Filename: Text; var SourceBlob: Codeunit "Temp Blob")

Uploads a file to the storage.

Parameters / Return Value

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


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(FullDirectoryPath: Text; Filename: Text; var SourceBlob: Codeunit "Temp Blob"; permissionKey: Text)

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

Parameters / Return Value

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


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; ToDirectoryFullPath: Text)

Parameters / Return Value

  • FromFullPath Text

  • ToDirectoryFullPath Text


CopyFile

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

Parameters / Return Value

  • FromFullPath Text

  • ToDirectoryFullPath Text

  • NewFilename Text


CopyFileWithPermissionKey

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

Parameters / Return Value

  • FromFullPath Text

  • ToDirectoryFullPath Text

  • permissionKey Text


CopyFileWithPermissionKey

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

Parameters / Return Value

  • FromFullPath Text

  • ToDirectoryFullPath Text

  • NewFilename Text

  • permissionKey Text



EOS Labs -