<?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 How do I iterate through a list in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-through-a-list/m-p/2509973#M141855</link>
    <description>&lt;P&gt;I am trying to build a job that will take a json list of (books: genre, url) and loop through each result to call an api by&amp;nbsp; passing the url to a tRest component.&amp;nbsp; The resulting json needs to be saved using the genre as the file name.&lt;/P&gt;&lt;P&gt;I can call individual tRest objects and save the json but I want to make this work in 1 job looping through a list of apis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* The NYTimes apis are free and you can register here (&amp;nbsp;&lt;A href="https://developer.nytimes.com/apis" target="_blank" rel="noopener"&gt;https://developer.nytimes.com/apis&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;* Sorry json that I'm trying to loop through doesn't paste well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"Books": [&lt;BR /&gt;{&lt;BR /&gt;"Genre": "Hardcover-Fiction",&lt;BR /&gt;"url": "&lt;A href="https://api.nytimes.com/svc/books/v3/lists/current/hardcover-fiction.json?api-key=" target="_blank" rel="noopener"&gt;https://api.nytimes.com/svc/books/v3/lists/current/hardcover-fiction.json?api-key=&lt;/A&gt;&amp;lt;--secret access key--&amp;gt;"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"Genre": "Trade-Fiction-Paperback",&lt;BR /&gt;"url": "&lt;A href="https://api.nytimes.com/svc/books/v3/lists/trade-fiction-paperback?api-key=" target="_blank" rel="noopener"&gt;https://api.nytimes.com/svc/books/v3/lists/trade-fiction-paperback?api-key=&lt;/A&gt;&amp;lt;--secret access key--&amp;gt;"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"Genre": "Paperback-Nonfiction",&lt;BR /&gt;"url": "&lt;A href="https://api.nytimes.com/svc/books/v3/lists/paperback-nonfiction.json?api-key=" target="_blank" rel="noopener"&gt;https://api.nytimes.com/svc/books/v3/lists/paperback-nonfiction.json?api-key=&lt;/A&gt;&amp;lt;--secret access key--&amp;gt;"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2025 13:20:28 GMT</pubDate>
    <dc:creator>pthomas</dc:creator>
    <dc:date>2025-03-14T13:20:28Z</dc:date>
    <item>
      <title>How do I iterate through a list</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-through-a-list/m-p/2509973#M141855</link>
      <description>&lt;P&gt;I am trying to build a job that will take a json list of (books: genre, url) and loop through each result to call an api by&amp;nbsp; passing the url to a tRest component.&amp;nbsp; The resulting json needs to be saved using the genre as the file name.&lt;/P&gt;&lt;P&gt;I can call individual tRest objects and save the json but I want to make this work in 1 job looping through a list of apis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* The NYTimes apis are free and you can register here (&amp;nbsp;&lt;A href="https://developer.nytimes.com/apis" target="_blank" rel="noopener"&gt;https://developer.nytimes.com/apis&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;* Sorry json that I'm trying to loop through doesn't paste well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"Books": [&lt;BR /&gt;{&lt;BR /&gt;"Genre": "Hardcover-Fiction",&lt;BR /&gt;"url": "&lt;A href="https://api.nytimes.com/svc/books/v3/lists/current/hardcover-fiction.json?api-key=" target="_blank" rel="noopener"&gt;https://api.nytimes.com/svc/books/v3/lists/current/hardcover-fiction.json?api-key=&lt;/A&gt;&amp;lt;--secret access key--&amp;gt;"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"Genre": "Trade-Fiction-Paperback",&lt;BR /&gt;"url": "&lt;A href="https://api.nytimes.com/svc/books/v3/lists/trade-fiction-paperback?api-key=" target="_blank" rel="noopener"&gt;https://api.nytimes.com/svc/books/v3/lists/trade-fiction-paperback?api-key=&lt;/A&gt;&amp;lt;--secret access key--&amp;gt;"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"Genre": "Paperback-Nonfiction",&lt;BR /&gt;"url": "&lt;A href="https://api.nytimes.com/svc/books/v3/lists/paperback-nonfiction.json?api-key=" target="_blank" rel="noopener"&gt;https://api.nytimes.com/svc/books/v3/lists/paperback-nonfiction.json?api-key=&lt;/A&gt;&amp;lt;--secret access key--&amp;gt;"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 13:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-through-a-list/m-p/2509973#M141855</guid>
      <dc:creator>pthomas</dc:creator>
      <dc:date>2025-03-14T13:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I iterate through a list</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-through-a-list/m-p/2510101#M141856</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use tFlowToIterate to iterate each URL extracted from JSON string and pass the current URL to tRest for next API calling. You can learn how to use tFlowToIterate component and how to access the current URL on tRest by reading this scenario: &lt;A href="https://help.qlik.com/talend/en-US/components/8.0/orchestration/tflowtoiterate-tfileinputdelimited-tlogrow-tlogrow-transforming-data-flow-to-list-standard-component-the" target="_self"&gt;Transforming data flow to a list.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Let me know if you still have any questions.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shicong&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2025 06:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-iterate-through-a-list/m-p/2510101#M141856</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2025-03-16T06:32:42Z</dc:date>
    </item>
  </channel>
</rss>

