Plugins
ZIP Plugin
The ZIP Plugin of the 365 business Proxy Application enables the creation, unpacking and display of ZIP archives on local drives, network drives or via UNC paths.
It is one of the Standard Plugins and can be installed directly via the Proxy Application Clients page in Microsoft Dynamics 365 Business Central.
AL integration
The following functions are available via the codeunit bdev.PRX Proxy Application (ID 5523630).
Functions
Create ZIP compressed archive (ZipArchive)
Code
Parameters
clientId: Guid(Optional) Specifies the ID of the Proxy Application Client on which the operation is to be performed.filePath: TextSpecifies the path or UNC path of the file or directory to be compressed.archivePath: TextSpecifies the path or UNC path of the ZIP file.password: Text(Optional) Specifies the password used to protect the ZIP archive.compressionLevel: Integer(Optional) Specifies the compression level from 0-9. The default value is 5 (normal).overwrite: Boolean(Optional) Specifies whether the destination file should be overwritten.
Return value
Returns true if the ZIP archive was successfully created.
Unzip a ZIP compressed archive (UnzipArchive)
Code
clientId: Guid(Optional) Specifies the ID of the Proxy Application Client on which the operation is to be executed.archivePath: TextSpecifies the path or UNC path of the ZIP file.password: Text(Optional) Specifies the password used to protect the ZIP archive.overwrite: Boolean(Optional) Specifies whether the target file should be overwritten.
Return value
Returns true if the ZIP archive was successfully extracted.
Unzip a ZIP compressed archive (ZipArchiveList)
Code
Parameters
files: Record "bdev.PRX File Item" temporary(Optional) Out variable that contains the contents of the ZIP archive.clientId: Guid(Optional) Specifies the ID of the Proxy Application Client on which the operation is to be performed.archivePath: TextSpecifies the path or UNC path of the ZIP file.password: Text(Optional) Specifies the password used to protect the ZIP archive.
Return value
Returns files: Record "bdev.PRX File Item" temporary, with the contents of the ZIP archive.
Last modified on


