<?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: dynamic api's url passing variable - Error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/dynamic-api-s-url-passing-variable-Error/m-p/2224734#M17331</link>
    <description>if i understood correct you want to send a request with mydate which can be any thing pass from variable. then you can use it like below.&amp;nbsp;
&lt;BR /&gt;
&lt;PRE&gt;"http://152.196.2.84:1050/jira/rest/api/latest/search?%20worklogdate='"+TalendDate.getDate("yyyy/MM/dd")+"'&amp;amp;fields"&lt;/PRE&gt;
&lt;BR /&gt;&amp;nbsp;or you can pass mydate value as&amp;nbsp;
&lt;BR /&gt;
&lt;PRE&gt;TalendDate.getDate("yyyy/MM/dd")&lt;/PRE&gt;
&lt;BR /&gt;please try this one.&amp;nbsp;</description>
    <pubDate>Wed, 28 Oct 2015 12:23:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-28T12:23:01Z</dc:date>
    <item>
      <title>dynamic api's url passing variable - Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/dynamic-api-s-url-passing-variable-Error/m-p/2224733#M17330</link>
      <description>Hi 
&lt;BR /&gt;I'm trying to pass dynamic date variable in api's url.&amp;nbsp; 
&lt;BR /&gt;Here is my job 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/316659/Untitled.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MByp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133304iDB6AEB5200FB64D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MByp.png" alt="0683p000009MByp.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;From Api's url JSON is coming and in tJavarow_1 am converting JSON to xml and storing in tfileoutputdelimited. 
&lt;BR /&gt;In url I pass specific date then get the JSON for that date only. But I want pass any variable which will store current date and get data accordingly. 
&lt;BR /&gt;Here is my trestclient component configuration. 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/316659/Untitled2.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC0b.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139286i827B914F9D21EF96/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC0b.png" alt="0683p000009MC0b.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;And when I pass "myvalue" in URL it shows error like this in log 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;B&gt;Payload: {"errorMessages":,"errors":{}}&lt;/B&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;In URL I'm passing variable like this&amp;nbsp; 
&lt;BR /&gt; 
&lt;A href="http://152.196.2.84:1050/jira/rest/api/latest/search?%20worklogdate=mydate&amp;amp;fields" target="_blank" rel="nofollow noopener noreferrer"&gt;http://152.196.2.84:1050/jira/rest/api/latest/search?%20worklogdate='mydate'&amp;amp;fields&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;In output am receiving the xml but empty. 
&lt;BR /&gt;Please help me for the same.</description>
      <pubDate>Wed, 28 Oct 2015 06:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/dynamic-api-s-url-passing-variable-Error/m-p/2224733#M17330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-28T06:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic api's url passing variable - Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/dynamic-api-s-url-passing-variable-Error/m-p/2224734#M17331</link>
      <description>if i understood correct you want to send a request with mydate which can be any thing pass from variable. then you can use it like below.&amp;nbsp;
&lt;BR /&gt;
&lt;PRE&gt;"http://152.196.2.84:1050/jira/rest/api/latest/search?%20worklogdate='"+TalendDate.getDate("yyyy/MM/dd")+"'&amp;amp;fields"&lt;/PRE&gt;
&lt;BR /&gt;&amp;nbsp;or you can pass mydate value as&amp;nbsp;
&lt;BR /&gt;
&lt;PRE&gt;TalendDate.getDate("yyyy/MM/dd")&lt;/PRE&gt;
&lt;BR /&gt;please try this one.&amp;nbsp;</description>
      <pubDate>Wed, 28 Oct 2015 12:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/dynamic-api-s-url-passing-variable-Error/m-p/2224734#M17331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-28T12:23:01Z</dc:date>
    </item>
  </channel>
</rss>

