Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 18123

Clone report for PowerBi embedded

$
0
0

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,


Viewing all articles
Browse latest Browse all 18123

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>