<?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 Rest API Pagination Query (List. Generate) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Pagination-Query-List-Generate/m-p/2376542#M34782</link>
    <description>&lt;P&gt;HI . sorrry for posting this second or third time but could'nt find any solutions from the community. let me know if some who can help me out.&amp;nbsp;Any power query expert here with Rest API's who can help me with List. Generate function query for pagination?&lt;BR /&gt;Issue: Pagination of API URL that &lt;STRONG&gt;allows 50 rows&lt;/STRONG&gt; of data&lt;STRONG&gt; per Agent.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;URL: &lt;A href="https://vcc-na4.8x8.com/api/stats/agents/{Agent-ID}/Activities?n=1" target="_blank"&gt;https://vcc-na4.8x8.com/api/stats/agents/{Agent-ID}/Activities?n=1&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;Background: Created a function below which allows me to &lt;STRONG&gt;extract all Agent ID's(But only 50 rows per ID).&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(id as text, n as number) as table=&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source = Xml.Tables(Web.Contents("&lt;A href="https://vcc-na8.8x8.com" target="_blank"&gt;https://vcc-na8.8x8.com&lt;/A&gt;",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[RelativePath="/api/stats/agents/" &amp;amp;(id)&amp;amp;"/activities?n="&amp;amp;number.totext(n) ) ),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;in&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Source&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Than a created a query below to extract all the rows as well watching&lt;STRONG&gt; curbal's video&lt;/STRONG&gt;,&lt;BR /&gt;&lt;STRONG&gt;Video Link: &lt;A href="https://www.youtube.com/watch?v=05yhwnuCjRw" target="_blank"&gt;https://www.youtube.com/watch?v=05yhwnuCjRw&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Query:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Source = List.Generate(()=&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[result = try all_rows (1) otherwise try null, n=1],&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;each [result]&amp;lt;&amp;gt; null,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;each [result = try all_rows ([n]+50) otherwise null, n=[n]+50],&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;each [result]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;in&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Source&lt;/STRONG&gt;&lt;BR /&gt;but it shows this error,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Saadii_360o_0-1646507639671.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/679685iF4044435226C1A82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Saadii_360o_0-1646507639671.png" alt="Saadii_360o_0-1646507639671.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Let me know if someone can solve my issue.&lt;BR /&gt;I am available for skype or zoom call anytime.if someone wants to understand the issue or resolve m,y issue that would be a huge help.&lt;/P&gt;</description>
    <pubDate>Sat, 05 Mar 2022 19:16:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-03-05T19:16:37Z</dc:date>
    <item>
      <title>Rest API Pagination Query (List. Generate)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Pagination-Query-List-Generate/m-p/2376542#M34782</link>
      <description>&lt;P&gt;HI . sorrry for posting this second or third time but could'nt find any solutions from the community. let me know if some who can help me out.&amp;nbsp;Any power query expert here with Rest API's who can help me with List. Generate function query for pagination?&lt;BR /&gt;Issue: Pagination of API URL that &lt;STRONG&gt;allows 50 rows&lt;/STRONG&gt; of data&lt;STRONG&gt; per Agent.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;URL: &lt;A href="https://vcc-na4.8x8.com/api/stats/agents/{Agent-ID}/Activities?n=1" target="_blank"&gt;https://vcc-na4.8x8.com/api/stats/agents/{Agent-ID}/Activities?n=1&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;Background: Created a function below which allows me to &lt;STRONG&gt;extract all Agent ID's(But only 50 rows per ID).&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(id as text, n as number) as table=&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source = Xml.Tables(Web.Contents("&lt;A href="https://vcc-na8.8x8.com" target="_blank"&gt;https://vcc-na8.8x8.com&lt;/A&gt;",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[RelativePath="/api/stats/agents/" &amp;amp;(id)&amp;amp;"/activities?n="&amp;amp;number.totext(n) ) ),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;in&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Source&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Than a created a query below to extract all the rows as well watching&lt;STRONG&gt; curbal's video&lt;/STRONG&gt;,&lt;BR /&gt;&lt;STRONG&gt;Video Link: &lt;A href="https://www.youtube.com/watch?v=05yhwnuCjRw" target="_blank"&gt;https://www.youtube.com/watch?v=05yhwnuCjRw&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Query:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Source = List.Generate(()=&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[result = try all_rows (1) otherwise try null, n=1],&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;each [result]&amp;lt;&amp;gt; null,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;each [result = try all_rows ([n]+50) otherwise null, n=[n]+50],&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;each [result]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;in&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Source&lt;/STRONG&gt;&lt;BR /&gt;but it shows this error,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Saadii_360o_0-1646507639671.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/679685iF4044435226C1A82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Saadii_360o_0-1646507639671.png" alt="Saadii_360o_0-1646507639671.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Let me know if someone can solve my issue.&lt;BR /&gt;I am available for skype or zoom call anytime.if someone wants to understand the issue or resolve m,y issue that would be a huge help.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 19:16:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Pagination-Query-List-Generate/m-p/2376542#M34782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-05T19:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API Pagination Query (List. Generate)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Pagination-Query-List-Generate/m-p/2382478#M34830</link>
      <description>&lt;P&gt;Hi @Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;There seems to be no problem with PQ expression, but can't you get the content of the table?&lt;/P&gt;
&lt;P&gt;I checked your website, which requires login.&lt;/P&gt;
&lt;P&gt;Have you try connecting to REST APIs With OAuth2 Authentication In Power Query?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/2021/08/29/connecting-to-rest-apis-with-oauth2-authentication-in-power-query-power-bi/" target="_self"&gt;https://blog.crossjoin.co.uk/2021/08/29/connecting-to-rest-apis-with-oauth2-authentication-in-power-query-power-bi/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 02:30:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Pagination-Query-List-Generate/m-p/2382478#M34830</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2022-03-09T02:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API Pagination Query (List. Generate)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Pagination-Query-List-Generate/m-p/2382915#M34833</link>
      <description>&lt;P&gt;Yes. I am unable to retrieve data by this query. but i have created two other queries which allows me to extract data but like all the rows. and one query which allows to extract all the id's.&lt;BR /&gt;&lt;BR /&gt;PFB the video link to see what i want,&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1swxDQTqDQ9ASIj76CMNMhgWWCiDDw47d/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1swxDQTqDQ9ASIj76CMNMhgWWCiDDw47d/view?usp=sharing&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Saad.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 07:37:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Pagination-Query-List-Generate/m-p/2382915#M34833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-09T07:37:56Z</dc:date>
    </item>
  </channel>
</rss>

