<?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: How to limit OnTake to 100 rows in Custom Connector in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-limit-OnTake-to-100-rows-in-Custom-Connector/m-p/3416034#M44272</link>
    <description>&lt;P&gt;Hello Xiaoxin, we are implementing paging already in our connector which works well but it is downstream from the OnTake so this would not resolve the issue. It appears that OnTake is set to receive a default of 200 items per page and there is not a clear way to override this default to a different value. If I cap OnTake to 100 results, we get errors because it is expecting 200 results.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 15:38:18 GMT</pubDate>
    <dc:creator>JoeFields</dc:creator>
    <dc:date>2023-09-05T15:38:18Z</dc:date>
    <item>
      <title>How to limit OnTake to 100 rows in Custom Connector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-limit-OnTake-to-100-rows-in-Custom-Connector/m-p/3409936#M44209</link>
      <description>&lt;P&gt;I am trying to implement Table.View with a REST API but the API has a limit of 100 items per call. I saw PQ trying to fetch 200 items at a time which caused errors so I modified the OnTake handler as below but now it loads 100 rows and then has an error on row 101. I suspect this is because it is still trying to fetch 200 rows but only getting back 100 but how do I override the max number of rows requested?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OnTake = (count as number) =&amp;gt; let newState = state &amp;amp; [Top = (if count &amp;gt; 100 then 100 else count)] in @View(newState),&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 01 Sep 2023 00:51:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-limit-OnTake-to-100-rows-in-Custom-Connector/m-p/3409936#M44209</guid>
      <dc:creator>JoeFields</dc:creator>
      <dc:date>2023-09-01T00:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit OnTake to 100 rows in Custom Connector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-limit-OnTake-to-100-rows-in-Custom-Connector/m-p/3412919#M44236</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/285122"&gt;@JoeFields&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'd like to suggest you take a look at following link about use power query handling pagination api if helps:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/handling-paging" target="_blank"&gt;Handling paging for Power Query connectors - Power Query | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 01:18:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-limit-OnTake-to-100-rows-in-Custom-Connector/m-p/3412919#M44236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-04T01:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit OnTake to 100 rows in Custom Connector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-limit-OnTake-to-100-rows-in-Custom-Connector/m-p/3416034#M44272</link>
      <description>&lt;P&gt;Hello Xiaoxin, we are implementing paging already in our connector which works well but it is downstream from the OnTake so this would not resolve the issue. It appears that OnTake is set to receive a default of 200 items per page and there is not a clear way to override this default to a different value. If I cap OnTake to 100 results, we get errors because it is expecting 200 results.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 15:38:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-limit-OnTake-to-100-rows-in-Custom-Connector/m-p/3416034#M44272</guid>
      <dc:creator>JoeFields</dc:creator>
      <dc:date>2023-09-05T15:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit OnTake to 100 rows in Custom Connector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-limit-OnTake-to-100-rows-in-Custom-Connector/m-p/3417146#M44288</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/285122"&gt;@JoeFields&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I'd like to suggest you filter on the output result to limit the result amount instead of the directly overwrite the parameters. (current power bi data connectors does not include any writeback features)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;So if these properties can't be configured/defined in the API request, it may means you also can't customize them at power bi desktop side.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regaerds,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 07:41:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-limit-OnTake-to-100-rows-in-Custom-Connector/m-p/3417146#M44288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-06T07:41:30Z</dc:date>
    </item>
  </channel>
</rss>

