<?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 set dynamic variable to the REST API to get current time in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-dynamic-variable-to-the-REST-API-to-get-current-time/m-p/2369209#M132379</link>
    <description>&lt;P&gt;What about the url constructing with java code: &lt;/P&gt;&lt;P&gt;"where=STARTDATE&amp;gt;='" + context.startdate + "'&amp;amp;return..."&lt;/P&gt;&lt;P&gt;Or you can use string replacement: &lt;/P&gt;&lt;P&gt;"where=STARTDATE&amp;gt;='{context.startdate}'&amp;amp;return... ".replace("{context.startdate}", context.startdate)&lt;/P&gt;&lt;P&gt;(I have shortened the URL)&lt;/P&gt;</description>
    <pubDate>Wed, 29 Sep 2021 07:00:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-29T07:00:05Z</dc:date>
    <item>
      <title>How to set dynamic variable to the REST API to get current time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-dynamic-variable-to-the-REST-API-to-get-current-time/m-p/2369208#M132378</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an API that contains query parameters for startdate. I want to run this job at the end of the month every time. I don't want to manually pass the value in the URL to set the current date. How to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The URL image is attached where it can be seen that I am giving the date and time in STARTDATE='2021-06-30 23:59:59'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I want to know how to set context variables to just store STARTDATE. I can store the whole URL in one variable but I just want to store STARTDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The job picture I have also attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to hardcode this flow or else manually I need to change the date every month which does not sound good if I want to schedule this job for every month at a particular date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great if someone can help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sheetal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 17:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-dynamic-variable-to-the-REST-API-to-get-current-time/m-p/2369208#M132378</guid>
      <dc:creator>SJeshwani1618330394</dc:creator>
      <dc:date>2021-09-28T17:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to set dynamic variable to the REST API to get current time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-dynamic-variable-to-the-REST-API-to-get-current-time/m-p/2369209#M132379</link>
      <description>&lt;P&gt;What about the url constructing with java code: &lt;/P&gt;&lt;P&gt;"where=STARTDATE&amp;gt;='" + context.startdate + "'&amp;amp;return..."&lt;/P&gt;&lt;P&gt;Or you can use string replacement: &lt;/P&gt;&lt;P&gt;"where=STARTDATE&amp;gt;='{context.startdate}'&amp;amp;return... ".replace("{context.startdate}", context.startdate)&lt;/P&gt;&lt;P&gt;(I have shortened the URL)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 07:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-dynamic-variable-to-the-REST-API-to-get-current-time/m-p/2369209#M132379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-29T07:00:05Z</dc:date>
    </item>
  </channel>
</rss>

