private static void Test_Export(PBIAPIClient pbic) { PBIGroup myGroup = pbic; // "My Workspace" PBIReport report = myGroup.GetReportByName("MyReport"); report.Export("D:\\MyReport.pbix"); }
private static void Sample_Dataset_Rebind(PBIAPIClient pbic) { PBIGroup powerBIGroup = pbic.GetGroupByName("ApiClient Test"); PBIReport powerBIReport = powerBIGroup.GetReportByName("Test Rebind"); PBIDataset newPowerBIDataset = powerBIGroup.GetDatasetByName("AdventureWorksDW2016"); powerBIReport.Rebind(newPowerBIDataset); }
private static void Test_GetReports(PBIAPIClient pbic) { PBIGroup myGroup = pbic; // "My Workspace" //var x = pbic.Groups; //x.Count(); PBIReport report = myGroup.GetReportByID("9ff0b4cd-2105-4405-857b-d51ffb06c14a"); report.Export("D:\\Desktop\\MyReport.pdf"); }
private static void Test_Rebind(PBIAPIClient pbic) { PBIGroup myGroup = pbic.GetGroupByName("RebindAPI"); // "My Workspace" PBIReport srcReport = myGroup.GetReportByName("Report"); PBIDataset targetDataset = myGroup.GetDatasetByName("Dataset1_Copy"); //srcReport.Clone("Report_Cloned", myGroup, targetDataset); srcReport.Rebind(targetDataset); }
private static void Test_Rebind(PBIAPIClient pbic) { PBIGroup myGroup = pbic; // "My Workspace" PBIReport srcReport = myGroup.GetReportByName("asdf"); PBIDataset targetDataset = myGroup.GetDatasetByName("Adobe Analytics Traffic Analysis"); srcReport.Clone("asdf2", myGroup, targetDataset); srcReport.Rebind(targetDataset); }