<?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 Custom connector to API with pagination in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-with-pagination/m-p/741899#M20017</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currentely trying to build a custom connector to an API using pagination. I have understood that I need to use&amp;nbsp;&lt;SPAN&gt;Table.GenerateByPage(), however there are not any examples on how to do this for APIs that are not OData-ready.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I receive the folowing metadata when the current page is not the current page:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IsLastPage is False.PNG" style="width: 597px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/178237i81B5D0C6F7C2502D/image-size/large?v=v2&amp;amp;px=999" role="button" title="IsLastPage is False.PNG" alt="IsLastPage is False.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And this if I am on the last page:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/178238i568D2FC7638C6DE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So how do refer to the url marked &amp;lt;Link rel="next"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code when dealing with OData.Nextlink would typically begin like this:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Page = (url as text) as nullable table =&amp;gt;
    let
        response = Web.Contents(url, [ Headers = BuildHeader()]),
        body = Json.Document(response),
        nextLink = GetNextLink(body),
        data = Table.FromRecords(body[next])
    in
        data meta [next = nextLink];&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;But what can I write instead of GetNextLink()?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 08:10:48 GMT</pubDate>
    <dc:creator>Jonas1</dc:creator>
    <dc:date>2019-07-17T08:10:48Z</dc:date>
    <item>
      <title>Custom connector to API with pagination</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-with-pagination/m-p/741899#M20017</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currentely trying to build a custom connector to an API using pagination. I have understood that I need to use&amp;nbsp;&lt;SPAN&gt;Table.GenerateByPage(), however there are not any examples on how to do this for APIs that are not OData-ready.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I receive the folowing metadata when the current page is not the current page:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IsLastPage is False.PNG" style="width: 597px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/178237i81B5D0C6F7C2502D/image-size/large?v=v2&amp;amp;px=999" role="button" title="IsLastPage is False.PNG" alt="IsLastPage is False.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And this if I am on the last page:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/178238i568D2FC7638C6DE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So how do refer to the url marked &amp;lt;Link rel="next"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code when dealing with OData.Nextlink would typically begin like this:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Page = (url as text) as nullable table =&amp;gt;
    let
        response = Web.Contents(url, [ Headers = BuildHeader()]),
        body = Json.Document(response),
        nextLink = GetNextLink(body),
        data = Table.FromRecords(body[next])
    in
        data meta [next = nextLink];&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;But what can I write instead of GetNextLink()?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 08:10:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-with-pagination/m-p/741899#M20017</guid>
      <dc:creator>Jonas1</dc:creator>
      <dc:date>2019-07-17T08:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom connector to API with pagination</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-with-pagination/m-p/2471927#M35652</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/63026"&gt;@Jonas1&lt;/a&gt;, were you able to accomplish this?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 15:16:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-with-pagination/m-p/2471927#M35652</guid>
      <dc:creator>DHCookTech</dc:creator>
      <dc:date>2022-04-22T15:16:57Z</dc:date>
    </item>
  </channel>
</rss>

