<?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 Re: API Key was expected to be provided in the header for this call in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/API-Key-was-expected-to-be-provided-in-the-header-for-this-call/m-p/1713189#M28299</link>
    <description>&lt;P&gt;The solution to this problem was changing the M Query as below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let 
vBaseUrl = "https://interact.leadforensics.com",
vPath = "WebApi_v2/Visit/GetAllVisits?datefrom=01-01-2020 00:00:00&amp;amp;dateto=31-12-2030 23:59:59&amp;amp;pagesize=999999&amp;amp;pageno=1", vHeaders = [#"Authorization-Token"="THIS IS WHERE I PUT THE AUTH TOKEN", #"ClientID"="THIS IS WHERE I PUT THE ID"],
Source = Web.Contents ( vBaseUrl, [RelativePath=vPath, Headers=vHeaders] ),
Json = Json.Document ( Source ),
SiteVisitList = Json[SiteVisitList],
#"Converted to Table" = Table.FromList(SiteVisitList, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
in 
#"Converted to Table"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 09:06:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-10T09:06:37Z</dc:date>
    <item>
      <title>API Key was expected to be provided in the header for this call</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Key-was-expected-to-be-provided-in-the-header-for-this-call/m-p/1641541#M27651</link>
      <description>&lt;P&gt;I've connected my dashboard to a source as explained by the provider&amp;nbsp;&lt;A href="https://leadforensics-api.readme.io/reference" target="_self"&gt;here&lt;/A&gt; and it loads the data and refreshes fine in desktop. But when I upload it and try to shcedule a refresh it gives me this error:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Failed to update data source credentials: Web.Contents failed to get contents from '&lt;/SPAN&gt;&lt;A href="https://interact.leadforensics.com/WebApi_v2/Business/GetAllBusinesses?datefrom=01-01-2010%2000:00:00&amp;amp;dateto=31-01-2025%2023:59:59&amp;amp;pagesize=10000&amp;amp;pageno=1" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://interact.leadforensics.com/WebApi_v2/Business/GetAllBusinesses?datefrom=01-01-2010%2000:00:0...&lt;/A&gt;&lt;SPAN&gt;' (400): The Lead Forensics API Key was expected to be provided in the header for this call."&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="power bi.jpg" style="width: 537px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/446645iE9A48D068529B9F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="power bi.jpg" alt="power bi.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 11:09:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Key-was-expected-to-be-provided-in-the-header-for-this-call/m-p/1641541#M27651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-03T11:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: API Key was expected to be provided in the header for this call</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Key-was-expected-to-be-provided-in-the-header-for-this-call/m-p/1643144#M27660</link>
      <description>&lt;P&gt;you may have had an active session in the desktop from a prior authentication.&amp;nbsp; That won't work in the service.&amp;nbsp; Provide the key as indicated.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 21:48:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Key-was-expected-to-be-provided-in-the-header-for-this-call/m-p/1643144#M27660</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-03T21:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: API Key was expected to be provided in the header for this call</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Key-was-expected-to-be-provided-in-the-header-for-this-call/m-p/1644135#M27672</link>
      <description>&lt;P&gt;It works in desktop (and continues working), cause i set it up. No one was using this source in the company before. But just to be sure, I have cleared all existing connections and set it up again and it works in Desktop. But not in the service.&lt;BR /&gt;If you click on the link I provided you will see what information do they provide i.e. Authorization Token and Client ID. They don't give you the API key name and it is not required to connect to the source.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 09:40:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Key-was-expected-to-be-provided-in-the-header-for-this-call/m-p/1644135#M27672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-04T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: API Key was expected to be provided in the header for this call</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Key-was-expected-to-be-provided-in-the-header-for-this-call/m-p/1713189#M28299</link>
      <description>&lt;P&gt;The solution to this problem was changing the M Query as below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let 
vBaseUrl = "https://interact.leadforensics.com",
vPath = "WebApi_v2/Visit/GetAllVisits?datefrom=01-01-2020 00:00:00&amp;amp;dateto=31-12-2030 23:59:59&amp;amp;pagesize=999999&amp;amp;pageno=1", vHeaders = [#"Authorization-Token"="THIS IS WHERE I PUT THE AUTH TOKEN", #"ClientID"="THIS IS WHERE I PUT THE ID"],
Source = Web.Contents ( vBaseUrl, [RelativePath=vPath, Headers=vHeaders] ),
Json = Json.Document ( Source ),
SiteVisitList = Json[SiteVisitList],
#"Converted to Table" = Table.FromList(SiteVisitList, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
in 
#"Converted to Table"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 09:06:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Key-was-expected-to-be-provided-in-the-header-for-this-call/m-p/1713189#M28299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-10T09:06:37Z</dc:date>
    </item>
  </channel>
</rss>

