<?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: tRest api query paramaetrized with pages and size in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRest-api-query-paramaetrized-with-pages-and-size/m-p/2200713#M3100</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOJGAA4"&gt;@amitdadri&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;Thanks for your valuable time. I am calling that api (url) to get that json file. Below is the correct mapping:&lt;BR /&gt;&lt;BR /&gt;tRest --&amp;gt; tFileOutputRaw (to get that file in json format)&amp;nbsp;&lt;BR /&gt;After this step, I can apply your suggestions.&lt;BR /&gt;&lt;BR /&gt;But in tRest URL's section, how could I pass parametrized values for total number of records/page size and currentdate in URL.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For tContextLoad, could you please explain in detail.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2019 10:59:02 GMT</pubDate>
    <dc:creator>mks02</dc:creator>
    <dc:date>2019-12-06T10:59:02Z</dc:date>
    <item>
      <title>tRest api query paramaetrized with pages and size</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-api-query-paramaetrized-with-pages-and-size/m-p/2200711#M3098</link>
      <description>&lt;P&gt;&lt;BR /&gt;I am calling an API by using tRest component and through that API, json file is getting.&lt;BR /&gt;The last rows for json file looks like below:&lt;/P&gt; 
&lt;P&gt;"totalRecords":250,&lt;BR /&gt;"totalPages":25,&lt;BR /&gt;"numberOfRecords":10&lt;/P&gt; 
&lt;P&gt;In tRest, URL segment the value is "api_url + "api/ver41/Student/getModifiedList?pageIndex=1&amp;amp;size=10&amp;amp;GetByDateTime=2019-09-30%0900:00:00.000""&lt;/P&gt; 
&lt;P&gt;I need to pass this URL as parametrized i.e. to read the file by API call, and then pass "numberOfRecords" and "totalPages" to&lt;BR /&gt;size and pageIndex of URL respectively. Number of records/TotalRecords are dynamic, they can be changed.&lt;/P&gt; 
&lt;P&gt;Attached is the tRest configuration.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Thanks in advance.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="API_URL_snapshot.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8fY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155034iC338856D1A458CE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8fY.png" alt="0683p000009M8fY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 08:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-api-query-paramaetrized-with-pages-and-size/m-p/2200711#M3098</guid>
      <dc:creator>mks02</dc:creator>
      <dc:date>2019-12-06T08:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: tRest api query paramaetrized with pages and size</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-api-query-paramaetrized-with-pages-and-size/m-p/2200712#M3099</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLsIAAW"&gt;@mks02&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;If I understand this correctly, then you can&lt;/P&gt; 
&lt;P&gt;1. take that json output in&amp;nbsp;tExtractJSONFields and can manipulate the data, then&lt;/P&gt; 
&lt;P&gt;2. take further the output to&amp;nbsp;&lt;SPAN&gt;tFlowToIterate and the iterate the output to the tRest component.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;3. In tRest components URL section, you can read the output of&amp;nbsp;tFlowToIterate as Global Variables. eg.&amp;nbsp;(String)globalMap.get("row6.&lt;SPAN&gt;totalRecords&lt;/SPAN&gt;")&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Second way is to use&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;tContextLoad, to pass the URL's dynamically.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Hope this helps you!!&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 09:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-api-query-paramaetrized-with-pages-and-size/m-p/2200712#M3099</guid>
      <dc:creator>amitdadri</dc:creator>
      <dc:date>2019-12-06T09:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: tRest api query paramaetrized with pages and size</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-api-query-paramaetrized-with-pages-and-size/m-p/2200713#M3100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOJGAA4"&gt;@amitdadri&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;Thanks for your valuable time. I am calling that api (url) to get that json file. Below is the correct mapping:&lt;BR /&gt;&lt;BR /&gt;tRest --&amp;gt; tFileOutputRaw (to get that file in json format)&amp;nbsp;&lt;BR /&gt;After this step, I can apply your suggestions.&lt;BR /&gt;&lt;BR /&gt;But in tRest URL's section, how could I pass parametrized values for total number of records/page size and currentdate in URL.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For tContextLoad, could you please explain in detail.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 10:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-api-query-paramaetrized-with-pages-and-size/m-p/2200713#M3100</guid>
      <dc:creator>mks02</dc:creator>
      <dc:date>2019-12-06T10:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: tRest api query paramaetrized with pages and size</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-api-query-paramaetrized-with-pages-and-size/m-p/2200714#M3101</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This link may help you :&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D73p000004kaAaCAI#M99422" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/tRest-response-with-pages/m-p/163242#M99422&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 14:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-api-query-paramaetrized-with-pages-and-size/m-p/2200714#M3101</guid>
      <dc:creator>Martintin</dc:creator>
      <dc:date>2019-12-11T14:29:36Z</dc:date>
    </item>
  </channel>
</rss>

