To deploy SSRS Report by x++ job in Ax 2012 you can try below job in AOT,
#AOT
TreeNodeIterator reportIterator = TreeNode::findNode(#SSRSReportsPath).AOTiterator();
SRSReportManager srsReportManager = new SRSReportManager();
SSRSReportConceptNode ssrsReportConceptNode;
if (!reportIterator)
return;
ssrsReportConceptNode = reportIterator.next();
while (ssrsReportConceptNode)
{
try
{
srsReportManager.deploymentStart();
srsReportManager.deployReport(ssrsReportConceptNode);
srsReportManager.deploymentEnd();
}
catch
{
exceptionTextFallThrough();
}
ssrsReportConceptNode = reportIterator.next();
}
Comments