<?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: Passing Variables in API Post Request JSON Body in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Passing-Variables-in-API-Post-Request-JSON-Body/m-p/551699#M20522</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="67988" data-lia-user-login="pelucapampa" class="lia-mention lia-mention-user"&gt;pelucapampa&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;It seems your API only gives you 20 rows by default, you can call the API&amp;nbsp; to fetch all&amp;nbsp;pages using Power Query code. For more details, please review the following similar threads.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/how-to-create-a-query-that-paginates/m-p/163768/highlight/false" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/how-to-create-a-query-that-paginates/m-p/163768/highlight/false&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Rest-API-Json-several-pages-automatically-call-the-next-page-URL/td-p/236189" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Rest-API-Json-several-pages-automatically-call-the-next-page-URL/td-p/236189&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Lydia&lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2018 02:30:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-25T02:30:00Z</dc:date>
    <item>
      <title>Passing Variables in API Post Request JSON Body</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Passing-Variables-in-API-Post-Request-JSON-Body/m-p/550189#M20479</link>
      <description>&lt;P&gt;Hi all, I've a Public API, i defined all of Headers parameters&lt;/P&gt;&lt;DIV class="heading"&gt;HEADERS&lt;/DIV&gt;&lt;HR /&gt;&lt;DIV class="param row"&gt;&lt;DIV class="name col-md-3 col-xs-12"&gt;X-PW-AccessToken &amp;lt;your_api_token&amp;gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="param row"&gt;&lt;DIV class="name col-md-3 col-xs-12"&gt;X-PW-Application developer_api&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="param row"&gt;&lt;DIV class="name col-md-3 col-xs-12"&gt;X-PW-UserEmail &amp;lt;your_email_address&amp;gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="param row"&gt;&lt;DIV class="name col-md-3 col-xs-12"&gt;Content-Type application/json&lt;/DIV&gt;&lt;DIV class="name col-md-3 col-xs-12"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="name col-md-3 col-xs-12"&gt;But the next requierement from de API it's include a BODY parameters&lt;/DIV&gt;&lt;DIV class="name col-md-3 col-xs-12"&gt;&lt;DIV class="body-heading"&gt;BODY&lt;/DIV&gt;&lt;HR /&gt;&lt;DIV class="raw-body code-snippet"&gt;&lt;PRE&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="token string"&gt;"page_size"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;25&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;
  &lt;SPAN class="token string"&gt;"sort_by"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"name"&lt;/SPAN&gt;
  
&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;It's possible to include that??&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Oct 2018 19:02:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Passing-Variables-in-API-Post-Request-JSON-Body/m-p/550189#M20479</guid>
      <dc:creator>pelucapampa</dc:creator>
      <dc:date>2018-10-23T19:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Variables in API Post Request JSON Body</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Passing-Variables-in-API-Post-Request-JSON-Body/m-p/550275#M20485</link>
      <description>&lt;P&gt;I've put this code and obtain data, but only 20 rows, have any IDEA??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let&lt;BR /&gt; &lt;BR /&gt; url = "https://api.prosperworks.com/developer_api/v1/opportunities/search",&lt;BR /&gt;&lt;BR /&gt;body = "#(lf)[#(lf){#(lf)""page_size"": 2000,#(lf)}#(lf)]#(lf)",&lt;BR /&gt; Source = Json.Document(Web.Contents(url, [Headers=[#"X-PW-AccessToken"="7d9b078105a2dcf7ebde2bd103b2d721", #"X-PW-UserEmail"="inaki@aadesa.com.ar", #"Content-Type"="application/xml", #"X-PW-Application"="developer_api"], Content=Json.FromValue(body)]))&lt;BR /&gt;in&lt;BR /&gt; Source&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Oct 2018 20:57:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Passing-Variables-in-API-Post-Request-JSON-Body/m-p/550275#M20485</guid>
      <dc:creator>pelucapampa</dc:creator>
      <dc:date>2018-10-23T20:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Variables in API Post Request JSON Body</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Passing-Variables-in-API-Post-Request-JSON-Body/m-p/551699#M20522</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="67988" data-lia-user-login="pelucapampa" class="lia-mention lia-mention-user"&gt;pelucapampa&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;It seems your API only gives you 20 rows by default, you can call the API&amp;nbsp; to fetch all&amp;nbsp;pages using Power Query code. For more details, please review the following similar threads.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/how-to-create-a-query-that-paginates/m-p/163768/highlight/false" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/how-to-create-a-query-that-paginates/m-p/163768/highlight/false&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Rest-API-Json-several-pages-automatically-call-the-next-page-URL/td-p/236189" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Rest-API-Json-several-pages-automatically-call-the-next-page-URL/td-p/236189&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Lydia&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 02:30:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Passing-Variables-in-API-Post-Request-JSON-Body/m-p/551699#M20522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T02:30:00Z</dc:date>
    </item>
  </channel>
</rss>

