<?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 JSON Codes in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2704935#M37930</link>
    <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;Sure thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kathir_0-1660703969787.png" style="width: 730px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/766411i5894C1CA3EE18D86/image-dimensions/730x126?v=v2" width="730" height="126" role="button" title="Kathir_0-1660703969787.png" alt="Kathir_0-1660703969787.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;************************************************************************************************************&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;baseuri = "&lt;A href="https://xxxx/devices/641524/stream-data-full" target="_blank"&gt;https://xxxx/devices/641524/stream-data-full&lt;/A&gt;",&lt;BR /&gt;initReq = Json.Document(Web.Contents(baseuri),[Headers=[Authorization="JWT "&amp;amp;GetToken()]]),&lt;BR /&gt;initData = initReq[results],&lt;BR /&gt;gather = (data as list, uri) =&amp;gt;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;newOffset = Json.Document(Web.Contents("&lt;A href="https://xxxx/devices/641524/stream-data-full" target="_blank"&gt;https://xxxx/devices/641524/stream-data-full&lt;/A&gt;"))[paging][next][after],&lt;BR /&gt;newUri = baseuri &amp;amp; "&amp;amp;after=" &amp;amp; newOffset,&lt;BR /&gt;newReq = Json.Document(Web.Contents(newUri)) ,&lt;BR /&gt;newdata = newReq[results] ,&lt;BR /&gt;data = List.Combine({data, newdata}),&lt;BR /&gt;check = if Table.Contains ( Record.ToTable(newReq) , [Name = "paging"] ) = true then @gather (data , newUri) else data&lt;BR /&gt;in check,&lt;/P&gt;&lt;P&gt;outputList = if Table.Contains ( Record.ToTable (initReq) , [Name = "paging"] ) = true then gather( initData , baseuri ) else initData ,&lt;BR /&gt;expand = Table.FromRecords(outputList)&lt;BR /&gt;in&lt;BR /&gt;expand&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2022 02:40:12 GMT</pubDate>
    <dc:creator>Kathir</dc:creator>
    <dc:date>2022-08-17T02:40:12Z</dc:date>
    <item>
      <title>API JSON Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2701673#M37891</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kathir_0-1660619353256.png" style="width: 873px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/765526i30D07A6727AAB597/image-dimensions/873x286?v=v2" width="873" height="286" role="button" title="Kathir_0-1660619353256.png" alt="Kathir_0-1660619353256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hi, I need an help with the above code. I encountered an error:&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Expression.Error: We cannot convert a value of type Record to type Number.&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Need help on this please.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 03:15:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2701673#M37891</guid>
      <dc:creator>Kathir</dc:creator>
      <dc:date>2022-08-16T03:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: API JSON Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2704646#M37926</link>
      <description>&lt;P&gt;Post a sanitized version of the returned JSON.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 00:14:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2704646#M37926</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-08-17T00:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: API JSON Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2704935#M37930</link>
      <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;Sure thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kathir_0-1660703969787.png" style="width: 730px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/766411i5894C1CA3EE18D86/image-dimensions/730x126?v=v2" width="730" height="126" role="button" title="Kathir_0-1660703969787.png" alt="Kathir_0-1660703969787.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;************************************************************************************************************&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;baseuri = "&lt;A href="https://xxxx/devices/641524/stream-data-full" target="_blank"&gt;https://xxxx/devices/641524/stream-data-full&lt;/A&gt;",&lt;BR /&gt;initReq = Json.Document(Web.Contents(baseuri),[Headers=[Authorization="JWT "&amp;amp;GetToken()]]),&lt;BR /&gt;initData = initReq[results],&lt;BR /&gt;gather = (data as list, uri) =&amp;gt;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;newOffset = Json.Document(Web.Contents("&lt;A href="https://xxxx/devices/641524/stream-data-full" target="_blank"&gt;https://xxxx/devices/641524/stream-data-full&lt;/A&gt;"))[paging][next][after],&lt;BR /&gt;newUri = baseuri &amp;amp; "&amp;amp;after=" &amp;amp; newOffset,&lt;BR /&gt;newReq = Json.Document(Web.Contents(newUri)) ,&lt;BR /&gt;newdata = newReq[results] ,&lt;BR /&gt;data = List.Combine({data, newdata}),&lt;BR /&gt;check = if Table.Contains ( Record.ToTable(newReq) , [Name = "paging"] ) = true then @gather (data , newUri) else data&lt;BR /&gt;in check,&lt;/P&gt;&lt;P&gt;outputList = if Table.Contains ( Record.ToTable (initReq) , [Name = "paging"] ) = true then gather( initData , baseuri ) else initData ,&lt;BR /&gt;expand = Table.FromRecords(outputList)&lt;BR /&gt;in&lt;BR /&gt;expand&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 02:40:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2704935#M37930</guid>
      <dc:creator>Kathir</dc:creator>
      <dc:date>2022-08-17T02:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: API JSON Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2704959#M37931</link>
      <description>&lt;P&gt;Your call result is a list, not a record. Replace Table.FromRecords with the appropriate list extractor.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 02:56:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2704959#M37931</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-08-17T02:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: API JSON Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2705472#M37934</link>
      <description>&lt;P&gt;Thanks but if i click goto error, its pointing to this line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;initReq = Json.Document(Web.Contents(baseuri),[Headers=[Authorization="JWT "&amp;amp;GetToken()]]),&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 07:31:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2705472#M37934</guid>
      <dc:creator>Kathir</dc:creator>
      <dc:date>2022-08-17T07:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: API JSON Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2706321#M37942</link>
      <description>&lt;P&gt;Use "Bearer " instead of "JWT".&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 10:50:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2706321#M37942</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-08-17T10:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: API JSON Codes</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2715493#M38046</link>
      <description>&lt;P&gt;Sorry for the delayed reply. It still doesnt work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 02:41:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-JSON-Codes/m-p/2715493#M38046</guid>
      <dc:creator>Kathir</dc:creator>
      <dc:date>2022-08-22T02:41:59Z</dc:date>
    </item>
  </channel>
</rss>

