This post is machine-translated. The original post in german language can be found here.
These post applies to following version:
Dynamics AX 2012
Dynamics AX 2012
|
|
|
|
|
|
|
This post is machine-translated. The original post in german language can be found here.
These post applies to following version:
Dynamics AX 2012
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
For example, you can use the command below to display a list of all SSRS reports or just one specific report (for example, SalesInvoice).
The output looks like this and may not be what you need. Therefore, there are a number of other commands that can be used to optimize the output.
ChangedBy : -AOS- ChangedDate : 11/25/2017 12:00:00 PM CreatedBy : -AOS- CreatedDate : 11/25/2017 12:00:00 PM DataSources : {} Designs : {ReportEE, ReportLT, ReportHU, ReportLV...} Name : SalesInvoice VSProjectNames : {SalesInvoiceReport.BusinessLogic, SRSDrillThroughCommon} Output : Report name: SalesInvoice Changed by: -AOS- Changed date: 11/25/2017 12:00:00 PM Created by: -AOS- Created date: 11/25/2017 12:00:00 PM Data sources: Designs: ReportEE, ReportLT, ReportHU, ReportLV, ReportCZ, ReportPL, Report, ReportTH, ReportFull_MY, ReportSimplified_MY Visual Studio projects: SalesInvoiceReport.BusinessLogic, SRSDrillThroughCommonFor example, you can use the following command to display only the names of the reports:
Of course, you can also display more than one property, for example, the name and the last change date:
This can look as follows:
Glücklicherweise kann man das ganze auch noch in eine Textdatei schreiben lassen:
Fortunately, you can also write the whole thing into a text file:
If you only want to display a certain selection, you can also use a where-clause, e.g. display only those reports in a file that have been changed in the last 30 days...
get-AXReport -reportname * | Select-Object Name, ChangedDate | Where{$_.ChangedDate -gt (Get-Date).AddDays(-30)} | out-file c: emplistchangedreports.txt...or after a certain date:
get-AXReport -reportname * | Select-Object Name, ChangedDate | Where{$_.ChangedDate -gt [datetime]::parse("26/08/2016")} | out-file c: emplistchangedreports.txt