Parameters
- name
- The full path and name of the report to copy
- newName
- The full path and name of the copied report
| Exception | Description |
|---|---|
| System.NullReferenceException | System.NullReferenceException is thrown if a report with the same name already exists with newName. |
| WrUserMessage | WrUserMessage will be thrown if the user with Storage Management identity does not have CanCopy access to the content item being copied; if access to the report is denied (e.g. the current user does not have the ability to create or edit the particular report type being copied); or if the newName of the report duplicates an existing report name in the desination. |
api.ReportManagement.AddFolder("Sales Reports\\2021","Q2"); api.ReportManagement.AddFolder("Sales Reports\\2021", "Q3"); api.ReportManagement.AddFolder("Sales Reports\\2021", "Q4"); api.ReportObjectFactory.Copy("Sales Reports\\2021\\Q1\\Audio-Visual Division", "Sales Reports\\2021\\Q2\\Audio-Visual Division"); api.ReportObjectFactory.Copy("Sales Reports\\2021\\Q1\\Audio-Visual Division", "Sales Reports\\2021\\Q3\\Audio-Visual Division"); api.ReportObjectFactory.Copy("Sales Reports\\2021\\Q1\\Audio-Visual Division", "Sales Reports\\2021\\Q4\\Audio-Visual Division");