Deploy Reports by Command

PHOTO EMBED

Sun Jan 12 2025 14:38:46 GMT+0000 (Coordinated Universal Time)

Saved by @MinaTimo

There are two ways to deploy reports in D365 FO.

First, Directly from Visual Studio using Solution Explorer or from build menu. 

Second, Deploying reports using PowerShell(Admin Mode) using below commands. 

1) For deploying all SSRS reports

K:\AOSService\PackagesLocalDirectory\Plugins\AxReportVmRoleStartupTask\DeployAllReportsToSSRS.ps1 -PackageInstallLocation "K:\AosService\PackagesLocalDirectory"

2) For deploying all SSRS report in specific module 

K:\AosService\PackagesLocalDirectory\Plugins\AxReportVmRoleStartupTask\DeployAllReportsToSSRS.ps1 -PackageInstallLocation "K:\AosService\PackagesLocalDirectory" -Module YourModuleName

In my case I have to deploy reports of FlexProperty module.

3) For deploying specific SSRS report

K:\AosService\PackagesLocalDirectory\Plugins\AxReportVmRoleStartupTask\DeployAllReportsToSSRS.ps1 -ReportName YourReportName.DesginTitle

In my case the command look like this

K:\AosService\PackagesLocalDirectory\Plugins\AxReportVmRoleStartupTask\DeployAllReportsToSSRS.ps1 -PackageInstallLocation "K:\AosService\PackagesLocalDirectory" -ReportName AFPPRStatusReport.Report

We can also use *Purch*, This will deploy all reports that have Purch in their name.



// Refrance
https://www.linkedin.com/pulse/deploy-ssrs-reports-using-powershell-d365-fo-shayan-arshi/
content_copyCOPY