<?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 Authenticating and Connecting Power BI to API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Authenticating-and-Connecting-Power-BI-to-API/m-p/3382476#M43920</link>
    <description>&lt;P&gt;Hi everyone, I'm diving into the world of Power BI now looking to connect it with a CRM we use at work and create live data dashboards from it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the link for this application (called MYP) API documentation:&amp;nbsp;&lt;A href="https://developer.mypcorp.com/art/overview/" target="_blank" rel="noopener"&gt;https://developer.mypcorp.com/art/overview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the authentication, I've started following the steps on:&amp;nbsp;&lt;A href="https://developer.mypcorp.com/art/authentication/" target="_blank" rel="noopener"&gt;https://developer.mypcorp.com/art/authentication/&lt;/A&gt;&amp;nbsp;but in one of the very first steps it asks for an 'Organization URL' to generate keys. Would this be a Power BI generated URL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone can point me in the right direction and/or to resources where I can refer to to learn the basics of this first stage (getting them connected) it will be great, thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2023 09:34:23 GMT</pubDate>
    <dc:creator>fernando89</dc:creator>
    <dc:date>2023-08-16T09:34:23Z</dc:date>
    <item>
      <title>Authenticating and Connecting Power BI to API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Authenticating-and-Connecting-Power-BI-to-API/m-p/3382476#M43920</link>
      <description>&lt;P&gt;Hi everyone, I'm diving into the world of Power BI now looking to connect it with a CRM we use at work and create live data dashboards from it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the link for this application (called MYP) API documentation:&amp;nbsp;&lt;A href="https://developer.mypcorp.com/art/overview/" target="_blank" rel="noopener"&gt;https://developer.mypcorp.com/art/overview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the authentication, I've started following the steps on:&amp;nbsp;&lt;A href="https://developer.mypcorp.com/art/authentication/" target="_blank" rel="noopener"&gt;https://developer.mypcorp.com/art/authentication/&lt;/A&gt;&amp;nbsp;but in one of the very first steps it asks for an 'Organization URL' to generate keys. Would this be a Power BI generated URL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone can point me in the right direction and/or to resources where I can refer to to learn the basics of this first stage (getting them connected) it will be great, thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 09:34:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Authenticating-and-Connecting-Power-BI-to-API/m-p/3382476#M43920</guid>
      <dc:creator>fernando89</dc:creator>
      <dc:date>2023-08-16T09:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Authenticating and Connecting Power BI to API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Authenticating-and-Connecting-Power-BI-to-API/m-p/3386518#M43963</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/603693"&gt;@fernando89&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It suppose it may mean the front part of request URL, you can take a look at the following link and sample codes about use web.content to getting data from API with relativepath option:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/2016/08/16/using-the-relativepath-and-query-options-with-web-contents-in-power-query-and-power-bi-m-code/" target="_blank"&gt;Chris Webb's BI Blog: Using The RelativePath And Query Options With Web.Contents() In Power Query And Power BI M Code (crossjoin.co.uk)&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    url = "https://developer.mypcorp.com/",
    body = "{}",
    token = "xxxxxxxx",
    header = [
        #"Content-Type" = "application/json",
        #"Authoritation" = "Basic " &amp;amp; token
    ],
    response = Web.Contents(url, [
        RelativePath = "art/authentication/",
        Headers = header,
        Content = Text.ToBinary(body)
    ]),
    AccessToken = Json.Document(response)[access_token],
    JsonResponse = Web.Contents(
        url,
        [
            RelativePath = "xxx/xxx",
            Headers = [
                Authoraztion = "Basic " &amp;amp; AccessToken,
                #"Content-Type" = "application/json"
            ]
        ]
    ),
    Result = Json.Document(JsonResponse)
in
    Result&lt;/LI-CODE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 03:12:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Authenticating-and-Connecting-Power-BI-to-API/m-p/3386518#M43963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-18T03:12:04Z</dc:date>
    </item>
  </channel>
</rss>

