<?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: Read Query parameters from tRESTRequest dynamically in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307014#M78492</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;What's the data type or format of the query parameters defined for the API?  Can you clarify this with more details?&lt;/P&gt;&lt;P&gt;From my understanding, we can parse the query parameters after tRESTRequest, then decide what to do based on the results using runIf connector. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 01:19:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-14T01:19:08Z</dc:date>
    <item>
      <title>Read Query parameters from tRESTRequest dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307013#M78491</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For an API that i am creating the user can optionally give in query params and i want to be able to loop through the list of params to see if they are not empty and need to be applied. I know i can do this manually in a tJava for example by checking each and every single query param, but i want to know if someone has managed to do this in a dynamical way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we access the list of params that are passed from the tRESTRequest component and use only the ones that are filled with a value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307013#M78491</guid>
      <dc:creator>SMR040</dc:creator>
      <dc:date>2024-11-15T22:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Read Query parameters from tRESTRequest dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307014#M78492</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;What's the data type or format of the query parameters defined for the API?  Can you clarify this with more details?&lt;/P&gt;&lt;P&gt;From my understanding, we can parse the query parameters after tRESTRequest, then decide what to do based on the results using runIf connector. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 01:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307014#M78492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-14T01:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read Query parameters from tRESTRequest dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307015#M78493</link>
      <description>&lt;P&gt;hi Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data types are mostly String and Integer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes it does not really matter where we process or parse the query params. The only thing we want is to go through the list of query params, chech which ones are filled (could be with a tFilterRow) and then use them to pass into another API call within the same job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how to loop through the list after the tFilterRow to retrieve each query param name and value to set it in the next URL?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 06:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307015#M78493</guid>
      <dc:creator>SMR040</dc:creator>
      <dc:date>2022-06-14T06:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Read Query parameters from tRESTRequest dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307016#M78494</link>
      <description>&lt;P&gt;We usually use tFlowToITerate to iterate each value from the list of query params and build a dynamic URL for another API call. Do you know the usage of tFlowToITerate component?&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 07:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307016#M78494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-14T07:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Read Query parameters from tRESTRequest dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307017#M78495</link>
      <description>&lt;P&gt;can you give an example of how you would iterate through the list of query params (without knowing what the variable names are)? Because that is what we are looking for, dynamically iterating that list to fetch the 'filled' (not null/empty) variables and concatenate them for the next URL.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 08:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307017#M78495</guid>
      <dc:creator>SMR040</dc:creator>
      <dc:date>2022-06-14T08:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Read Query parameters from tRESTRequest dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307018#M78496</link>
      <description>&lt;P&gt;in addition:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i found a variable that has all the query params that are used but for some reason i am not able to fetch only the query params from that variable. i guess it has something to do with my syntax?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i use below i get for example URI, BASE URI but also all of the query params that are given by consumer&lt;/P&gt;&lt;P&gt; System.out.println("All query params: "+ globalMap.get("restRequest"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when i try to take only the query params i get below error&lt;/P&gt;&lt;P&gt;System.out.println("All query params: "+ globalMap.get("restRequest").get("ALL_QUERY_PARAMS"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SpUkXAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153059iCC9923E9A822128D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SpUkXAAV.png" alt="0695b00000SpUkXAAV.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307018#M78496</guid>
      <dc:creator>SMR040</dc:creator>
      <dc:date>2022-06-14T09:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Read Query parameters from tRESTRequest dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307019#M78497</link>
      <description>&lt;P&gt;I guess the solution to my question is something like this (still need to remove some braces and comma's from the output):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// store all restRequest data&lt;/P&gt;&lt;P&gt;java.util.Map&amp;lt;String, Object&amp;gt; myMap = ((java.util.Map&amp;lt;String, Object&amp;gt;)globalMap.get("restRequest"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// store only the query parameters from request&lt;/P&gt;&lt;P&gt;java.util.Map&amp;lt;String, Object&amp;gt; myParams = ((java.util.Map&amp;lt;String, Object&amp;gt;)myMap.get("ALL_QUERY_PARAMS"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// print the query parameters&lt;/P&gt;&lt;P&gt;System.out.println("All query params: "+ myParams);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where from the last System.out.println we get this output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All query params: {queryParam1=[01], queryParam2=[abc], queryParam3=[999], queryParam4=[contract1,contract2,contract3]}&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307019#M78497</guid>
      <dc:creator>SMR040</dc:creator>
      <dc:date>2022-06-14T09:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Read Query parameters from tRESTRequest dynamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307020#M78498</link>
      <description>&lt;P&gt;Great! Thanks for sharing the solution!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 00:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-Query-parameters-from-tRESTRequest-dynamically/m-p/2307020#M78498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-15T00:56:24Z</dc:date>
    </item>
  </channel>
</rss>

