<?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: How to pass parameters to tRest component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-parameters-to-tRest-component/m-p/2297254#M69845</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi,&lt;BR /&gt;I suppose you can have a tJavaFlex between the 2 tREST to change the body as you want or to set 1 or more global variables then, in the body you can use these variables:&lt;BR /&gt;- in tJavaFlex:&lt;BR /&gt;globalMap.put("creationDate", what_you_want);&lt;BR /&gt;- in tRest, field Body:&lt;BR /&gt;&amp;nbsp;"&amp;lt;overwriteFiles&amp;gt;true&amp;lt;/overwriteFiles&amp;gt;&lt;BR /&gt;blablabla"+globalMap.get("creationDate")+"blablabla"&lt;BR /&gt;It should works.&lt;BR /&gt;Let me know.&lt;BR /&gt;Regards,&lt;BR /&gt;Fred&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDpA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128580i9081EF4C99D2D807/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDpA.jpg" alt="0683p000009MDpA.jpg" /&gt;&lt;/span&gt;</description>
    <pubDate>Fri, 19 Jun 2015 19:17:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-19T19:17:10Z</dc:date>
    <item>
      <title>How to pass parameters to tRest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-parameters-to-tRest-component/m-p/2297252#M69843</link>
      <description>Hi, 
&lt;BR /&gt;I have a job (see screenshot) whereby I am submitting a REST request with an http Body. I would like to make it more dynamic whereby I would pass a parameter value to the job e.g. right now you see the following: 
&lt;BR /&gt;&amp;lt;creationDate&amp;gt;2015-06-18T16:12:15.290-07:00&amp;lt;/creationDate&amp;gt; 
&lt;BR /&gt;instead I would like to do something like 
&lt;BR /&gt;&amp;lt;creationDate&amp;gt;myDateParameter&amp;lt;/creationDate&amp;gt; 
&lt;BR /&gt;where myDateParameter would come from a list of dates. How would I change this job to achieve that? Also, how do I specify parameter values? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Doug 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME2q.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140682iD1B146176A4C2A05/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME2q.jpg" alt="0683p000009ME2q.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 19 Jun 2015 17:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-parameters-to-tRest-component/m-p/2297252#M69843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-19T17:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameters to tRest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-parameters-to-tRest-component/m-p/2297253#M69844</link>
      <description>Hi,
&lt;BR /&gt;I suppose you can have a tJavaFlex between the 2 tREST to change the body as you want or to set 1 or more global variables then, in the body you can use these variables:
&lt;BR /&gt;- in tJavaFlex:
&lt;BR /&gt;globalMap.put("creationDate", what_you_want);
&lt;BR /&gt;- in tRest, field Body:
&lt;BR /&gt;&amp;nbsp;"&amp;lt;overwriteFiles&amp;gt;true&amp;lt;/overwriteFiles&amp;gt;
&lt;BR /&gt;blablabla"+globalMap.get("creationDate")+"blablabla"
&lt;BR /&gt;It should works.
&lt;BR /&gt;Let me know.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Fred</description>
      <pubDate>Fri, 19 Jun 2015 18:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-parameters-to-tRest-component/m-p/2297253#M69844</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2015-06-19T18:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameters to tRest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-parameters-to-tRest-component/m-p/2297254#M69845</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi,&lt;BR /&gt;I suppose you can have a tJavaFlex between the 2 tREST to change the body as you want or to set 1 or more global variables then, in the body you can use these variables:&lt;BR /&gt;- in tJavaFlex:&lt;BR /&gt;globalMap.put("creationDate", what_you_want);&lt;BR /&gt;- in tRest, field Body:&lt;BR /&gt;&amp;nbsp;"&amp;lt;overwriteFiles&amp;gt;true&amp;lt;/overwriteFiles&amp;gt;&lt;BR /&gt;blablabla"+globalMap.get("creationDate")+"blablabla"&lt;BR /&gt;It should works.&lt;BR /&gt;Let me know.&lt;BR /&gt;Regards,&lt;BR /&gt;Fred&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDpA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128580i9081EF4C99D2D807/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDpA.jpg" alt="0683p000009MDpA.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 19 Jun 2015 19:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-parameters-to-tRest-component/m-p/2297254#M69845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-19T19:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameters to tRest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-parameters-to-tRest-component/m-p/2297255#M69846</link>
      <description>Hi,
&lt;BR /&gt;Put a tLogRow before tRest1 to see what is sent to this component.
&lt;BR /&gt;Also, you can execute your job using the debug mode or put some traces in the service called by tRest1.
&lt;BR /&gt;Fred</description>
      <pubDate>Sat, 20 Jun 2015 16:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-parameters-to-tRest-component/m-p/2297255#M69846</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2015-06-20T16:59:31Z</dc:date>
    </item>
  </channel>
</rss>

