//Create new folders for each quarter
api.ReportManagement.AddFolder("Sales Reports\\2021", "Q2");
api.ReportManagement.AddFolder("Sales Reports\\2021", "Q3");
api.ReportManagement.AddFolder("Sales Reports\\2021", "Q4");
//Get the content ID of the sales report template to copy
Guid mymyReportId = Guid.Parse(api.ReportManagement.GetContentIdFromPath("Sales Reports\\2021\\Q1\\Audio-Visual Division"));
//Load the template as the active report.
api.ReportObjectFactory.LoadFromRepository(mymyReportId, true);
/**
* Optionally make changes to the active report here
*/
//Copy the Report
api.ReportObjectFactory.Copy(api.ReportObjectFactory.Active, "Sales Reports\\2021\\Q2\\Audio-Visual Division", null);
api.ReportObjectFactory.Copy(api.ReportObjectFactory.Active, "Sales Reports\\2021\\Q3\\Audio-Visual Division", null);
api.ReportObjectFactory.Copy(api.ReportObjectFactory.Active, "Sales Reports\\2021\\Q4\\Audio-Visual Division", null);