<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Open .ODC connection in R in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Open-ODC-connection-in-R/m-p/1153730#M14575</link>
    <description>&lt;P&gt;I have a .odc (office data connection) that connects Excel to a web service (MSBI, Web PowerBI). ]&lt;BR /&gt;It's working fine.&lt;/P&gt;&lt;P&gt;How can I open this connection directly from R?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The odc file contents are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;     &amp;lt;odc:ConnectionString&amp;gt;
        Provider=MSOLAP;
        Integrated Security=ClaimsToken;
        Identity Provider=https://login.microsoftonline.com/common, 
        https://analysis.windows.net/powerbi/api, xxxxxx-xx-xx-xxxxxx;
        Data Source=pbiazure://api.powerbi.com;
        Initial Catalog=xxxxx-xxxx-xxxx-xxxx-xxxxx;
        MDX Compatibility= 1;
        MDX Missing Member Mode= Error;
        Safety Options= 2;
        Update Isolation Level= X;
        Locale Identifier= 10XX
        &amp;lt;/odc:ConnectionString&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I tried so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;powerbi.app &amp;lt;- oauth_app(
appname = "pbiazure://api.powerbi.com XXXX-XX-XXX-a611",
key = "XXXXXXXXX",
secret = "XXXXXXXXX")

powerbi.token &amp;lt;- oauth2.0_token(powerbi.urls, powerbi.app,
user_params = list(resource = "https://analysis.windows.net/powerbi/api"),
use_oob = FALSE)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But it is returning the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;gt; AADSTS900561: The endpoint only accepts POST, OPTIONS requests. Received a GET request.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end of the day, I just want to load my company's "queries/view" available on PowerBI Web&amp;nbsp; directly into R.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2020 23:27:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-11T23:27:55Z</dc:date>
    <item>
      <title>Open .ODC connection in R</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Open-ODC-connection-in-R/m-p/1153730#M14575</link>
      <description>&lt;P&gt;I have a .odc (office data connection) that connects Excel to a web service (MSBI, Web PowerBI). ]&lt;BR /&gt;It's working fine.&lt;/P&gt;&lt;P&gt;How can I open this connection directly from R?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The odc file contents are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;     &amp;lt;odc:ConnectionString&amp;gt;
        Provider=MSOLAP;
        Integrated Security=ClaimsToken;
        Identity Provider=https://login.microsoftonline.com/common, 
        https://analysis.windows.net/powerbi/api, xxxxxx-xx-xx-xxxxxx;
        Data Source=pbiazure://api.powerbi.com;
        Initial Catalog=xxxxx-xxxx-xxxx-xxxx-xxxxx;
        MDX Compatibility= 1;
        MDX Missing Member Mode= Error;
        Safety Options= 2;
        Update Isolation Level= X;
        Locale Identifier= 10XX
        &amp;lt;/odc:ConnectionString&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I tried so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;powerbi.app &amp;lt;- oauth_app(
appname = "pbiazure://api.powerbi.com XXXX-XX-XXX-a611",
key = "XXXXXXXXX",
secret = "XXXXXXXXX")

powerbi.token &amp;lt;- oauth2.0_token(powerbi.urls, powerbi.app,
user_params = list(resource = "https://analysis.windows.net/powerbi/api"),
use_oob = FALSE)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But it is returning the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;gt; AADSTS900561: The endpoint only accepts POST, OPTIONS requests. Received a GET request.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end of the day, I just want to load my company's "queries/view" available on PowerBI Web&amp;nbsp; directly into R.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 23:27:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Open-ODC-connection-in-R/m-p/1153730#M14575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-11T23:27:55Z</dc:date>
    </item>
  </channel>
</rss>

