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

Power BI integration SSRS

$
0
0

Hello 

 

With this code :

 

List<KeyValuePair<string, string>> vals = new List<KeyValuePair<string, string>>();
            vals.Add(new KeyValuePair<string, string>("grant_type", "password"));
            vals.Add(new KeyValuePair<string, string>("scope", "openid"));
            vals.Add(new KeyValuePair<string, string>("resource", "https://analysis.windows.net/powerbi/api"));
            vals.Add(new KeyValuePair<string, string>("client_id", ConfigManager.Current.GetAppSetting("clientId")));
            vals.Add(new KeyValuePair<string, string>("client_secret", ConfigManager.Current.GetAppSetting("clientSecret")));
            vals.Add(new KeyValuePair<string, string>("username", ""));
            vals.Add(new KeyValuePair<string, string>("password", ""));
            string url = string.Format("https://login.windows.net/common/oauth2/token");
            HttpClient hc = new HttpClient();
            HttpContent content = new FormUrlEncodedContent(vals);
            HttpResponseMessage hrm = hc.PostAsync(url, content).Result;
            string responseData = "";
            if (hrm.IsSuccessStatusCode)
            {
                Stream data = await hrm.Content.ReadAsStreamAsync();
                using (StreamReader reader = new StreamReader(data, Encoding.UTF8))
                {
                    responseData = reader.ReadToEnd();
                }
            }
            return JsonConvert.DeserializeObject<AccessToken>(responseData).access_token;

I am available to get reports from my powerBI account (without interactive connexion) and I can display them on a web application.

 

But I want to know if is it possible to get powerBI report from SSRS with the PowerBI integration ( inside the SSRS configuration manager ) ? Is there an embed url ?

 

Thanks


Viewing all articles
Browse latest Browse all 17916

Trending Articles



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