<?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 use Talend Datetime function in SOQL Query (tSalesforceinput) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Talend-Datetime-function-in-SOQL-Query/m-p/2261263#M42097</link>
    <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&lt;BR /&gt;It worked when I used the SOQL as it is in tSalesforceinput.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 07:43:53 GMT</pubDate>
    <dc:creator>rohitpatil1993</dc:creator>
    <dc:date>2020-03-26T07:43:53Z</dc:date>
    <item>
      <title>How to use Talend Datetime function in SOQL Query (tSalesforceinput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Talend-Datetime-function-in-SOQL-Query/m-p/2261258#M42092</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;BR /&gt;I have a query which should fetch results from salesforce on the basis of below WHERE clause :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Select xyz&lt;BR /&gt;FROM xyz&lt;/P&gt;&lt;P&gt;WHERE StartDateTime &amp;gt;= &lt;STRONG&gt;TODAY&lt;/STRONG&gt; AND StartDateTime &amp;lt;= &lt;STRONG&gt;NEXT_N_DAYS:&lt;/STRONG&gt;3&lt;BR /&gt;&lt;BR /&gt;Note: For&amp;nbsp; (TODAY) I suppose I will have to use getDate() &amp;amp; for NEXT_N_DAYS:3 I will have to use addDate() and pass them at runtime.&lt;BR /&gt;&lt;BR /&gt;My question is how do I use the this functions in my SOQL Query to fetch desired output. I tried using global variables and context variables but faced different technical issues related to type conversion.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Now, I am unsure of the approach I will have to use. Can anyone confirm the ideal way of doing this task. In case I have a confirmed approach, I will stick to it and try to resolve the technical challenges.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please let me know If the question is unclear.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Talend-Datetime-function-in-SOQL-Query/m-p/2261258#M42092</guid>
      <dc:creator>rohitpatil1993</dc:creator>
      <dc:date>2024-11-16T02:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Talend Datetime function in SOQL Query (tSalesforceinput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Talend-Datetime-function-in-SOQL-Query/m-p/2261259#M42093</link>
      <description>The best and simplest solution is to use standard salesforce literals such as TODAY, NEXT_N_DAYS or others as soon as the condition is always the same. The example from your request should work.&lt;BR /&gt;If you want a dynamic condition, you need to construct it as a string by concatenate different parts like this (as an example):&lt;BR /&gt;"StartDateTime &amp;gt;= " + (Sting)globalMap.get("minDate") + " AND StartDateTime &amp;lt;= " + (Sting)globalMap.get("maxDate")&lt;BR /&gt;Here minDate and maxDate variables has been caculated before the tSalesforceInput component using appropriate Talend date functions such as:&lt;BR /&gt;TalendDate.getDate("yyyy-MM-dd")&lt;BR /&gt;or&lt;BR /&gt;TalendDate.parseDate("yyyy-MM-dd", TalendDate.addDate(TalendDate.getDate("yyyy-MM-dd"), "yyyy-MM-dd", 3, "dd"))</description>
      <pubDate>Sun, 22 Mar 2020 21:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Talend-Datetime-function-in-SOQL-Query/m-p/2261259#M42093</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-03-22T21:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Talend Datetime function in SOQL Query (tSalesforceinput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Talend-Datetime-function-in-SOQL-Query/m-p/2261260#M42094</link>
      <description>&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;I understood the second part of your reply. However as stated&lt;BR /&gt;&lt;STRONG&gt;"The best and simplest solution is to use standard salesforce literals such as TODAY, NEXT_N_DAYS or others as soon as the condition is always the same."&lt;/STRONG&gt;&lt;BR /&gt;Are you saying that if If I run the below query in tSalesforceinput, It will work in Talend?&lt;BR /&gt;Please excuse if it is a silly question since I am not very familiar with SOQL.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;SELECT&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp; Event.id,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp; Event.Account.Name,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp; Event.Account.telephoneMobile__c&lt;/P&gt; 
&lt;P&gt;FROM Event&lt;/P&gt; 
&lt;P&gt;WHERE StartDateTime &amp;gt;= TODAY AND StartDateTime &amp;lt;= NEXT_N_DAYS:3&lt;/P&gt; 
&lt;P&gt;AND codeMagasin__c in ('0062', '0374', '0368', '0041')&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 05:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Talend-Datetime-function-in-SOQL-Query/m-p/2261260#M42094</guid>
      <dc:creator>rohitpatil1993</dc:creator>
      <dc:date>2020-03-23T05:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Talend Datetime function in SOQL Query (tSalesforceinput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Talend-Datetime-function-in-SOQL-Query/m-p/2261261#M42095</link>
      <description>Yes it will work</description>
      <pubDate>Mon, 23 Mar 2020 06:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Talend-Datetime-function-in-SOQL-Query/m-p/2261261#M42095</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-03-23T06:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Talend Datetime function in SOQL Query (tSalesforceinput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Talend-Datetime-function-in-SOQL-Query/m-p/2261262#M42096</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/005390000069IaWAAU"&gt;@rohitpatil1993&lt;/A&gt;&amp;nbsp;did you try? does it works as expected?&lt;/P&gt;
&lt;P&gt;If so, thanks to mark your case as solved.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 11:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Talend-Datetime-function-in-SOQL-Query/m-p/2261262#M42096</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-03-23T11:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Talend Datetime function in SOQL Query (tSalesforceinput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-Talend-Datetime-function-in-SOQL-Query/m-p/2261263#M42097</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&lt;BR /&gt;It worked when I used the SOQL as it is in tSalesforceinput.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 07:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-Talend-Datetime-function-in-SOQL-Query/m-p/2261263#M42097</guid>
      <dc:creator>rohitpatil1993</dc:creator>
      <dc:date>2020-03-26T07:43:53Z</dc:date>
    </item>
  </channel>
</rss>

