Hi,
Are you guys able to clone reports with the Api.Core library? This is what I'm trying to do:
1) I have a report in workspace X
2) Want to clone the report from workspace X to workspace Y
3) I'm not specifying the dataset id, as it is an optional value and I assume will be cloned as well
This is the code I'm trying:
var cloneReportRequest = new CloneReportRequest(newName, targetWorkspaceId); var credentials = new TokenCredentials(Utils.accessKey, "AppKey"); var client = new PowerBIClient(credentials); client.BaseUri = new Uri(Utils.apiEndpointUri); Report report; using (client) { report = client.Reports.CloneReport( workspaceCollectionName, workspaceId, reportId, cloneReportRequest); }
I have tried the provision sample for PowerBI Embeded, PowerCli and the code above. All of them return "Bad Request". There is not much documentation on it other than: https://docs.microsoft.com/de-ch/dotnet/api/microsoft.powerbi.api.v1.reportsextensions.clonereport?view=powerbiapi-1.1.10
The same config works to create reports, generate embed tokens, etc.
Any suggestion is appareciated.
Thanks,