How to: Import Image Zip File With PowerShell
You can import images from a .zip file with PowerShell:
- Open PowerShell as Administrator.
- Create a script, and adapt and run the script for each .zip file.
Below is an example of a script to use in LS Central on-premises or in a GoCurrent database:
$serverInstance = "BC"
$CompanyName = "CRONUS International Ltd."
$zipFile = "C:\run\my\Retail Image File-3.zip"
Invoke-NAVCodeunit `
-ServerInstance $serverInstance `
-Tenant "Default" `
-CompanyName $CompanyName `
-CodeunitId 99009060 `
-MethodName "ImportRetailImageFromZIP" `
-Argument "$zipFile"