Following code can be used to deploy SSRS reports in Ax 2012.
However make sure that this code runs from the client, and not as CIL (otherwise you will get run time errors)
I can run this code as a job and works fine.
SRSReportManager srsRptMgr = new SRSReportManager(); SSRSReportConceptNode node = new SSRSReportConceptNode(); node = TreeNode::findNode(@"\\SSRS Reports\Reports\SalesInvoice"); srsRptMgr.deploymentStart(); srsRptMgr.deployReport(node); srsRptMgr.deploymentEnd();
Filed under: Ax 2012, Dynamics Ax, SSRS, X++ Tagged: AX2012, Dynamics Ax, SSRS, x++
