<?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 IN clause at tSalesforceInput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/IN-clause-at-tSalesforceInput/m-p/2302438#M74423</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 want to use an 'IN' clause in a salesforce input query, based on some data that i already have&lt;/P&gt;&lt;P&gt;I have a list of strings, created runtime based on a csv file,  and i want to filter the query in a way that it takes only COLUMN IN (my list of strings) records.&lt;/P&gt;&lt;P&gt;Is it possible to do without using a join? &lt;/P&gt;&lt;P&gt;The problem is that the query as is right now extracts a lot of records and i want to avoid that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stevan&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:13:58 GMT</pubDate>
    <dc:creator>StevanJovetic10</dc:creator>
    <dc:date>2024-11-16T01:13:58Z</dc:date>
    <item>
      <title>IN clause at tSalesforceInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IN-clause-at-tSalesforceInput/m-p/2302438#M74423</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 want to use an 'IN' clause in a salesforce input query, based on some data that i already have&lt;/P&gt;&lt;P&gt;I have a list of strings, created runtime based on a csv file,  and i want to filter the query in a way that it takes only COLUMN IN (my list of strings) records.&lt;/P&gt;&lt;P&gt;Is it possible to do without using a join? &lt;/P&gt;&lt;P&gt;The problem is that the query as is right now extracts a lot of records and i want to avoid that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stevan&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IN-clause-at-tSalesforceInput/m-p/2302438#M74423</guid>
      <dc:creator>StevanJovetic10</dc:creator>
      <dc:date>2024-11-16T01:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: IN clause at tSalesforceInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IN-clause-at-tSalesforceInput/m-p/2302439#M74424</link>
      <description>&lt;P&gt;@Fabrizio Meloni​&amp;nbsp;, yes, you can add a in cause in the Condition field of tSalesforceInput to filter the data, for example:&lt;/P&gt;&lt;P&gt;"Id in ("+context.in+")"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read the list of value from csv file and build the in string, eg:&lt;/P&gt;&lt;P&gt;tFileInputDelimited--main(row1)--tJavaFlex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the main code of tJavaFlex:&lt;/P&gt;&lt;P&gt;if(context.in.equals("")){&lt;/P&gt;&lt;P&gt;context.in="'"+row1.columnName+"'";&lt;/P&gt;&lt;P&gt;}else{&lt;/P&gt;&lt;P&gt;context.in=context.in+",'"+row1.columnName+"'";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Define a context variable called in, string type and let the default value as empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Sun, 15 Nov 2020 09:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IN-clause-at-tSalesforceInput/m-p/2302439#M74424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-15T09:22:34Z</dc:date>
    </item>
  </channel>
</rss>

