<?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: tSalesforceInput and COUNT in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-and-COUNT/m-p/2319569#M89801</link>
    <description>&lt;P&gt;Works great.  Thank you!  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had tried using an alias in a SOQL query in the past and it failed.  I discovered back then that Salesforce rejects aliases unless they are used on aggregate functions / "group by" SOQL queries.  It must have slipped my mind.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 09:40:19 GMT</pubDate>
    <dc:creator>Aldo1</dc:creator>
    <dc:date>2022-09-08T09:40:19Z</dc:date>
    <item>
      <title>tSalesforceInput and COUNT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-and-COUNT/m-p/2319567#M89799</link>
      <description>&lt;P&gt;Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to query a Salesforce object and get a row count without actually retrieving all the rows.   In SOQL I can execute the query:     select COUNT() from Account &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and it will return the number of records.  I can enter this same query into my tSalesforce component and it will execute without throwing an error.... so it doesn't seem to have a problem running the query itself.  But I can't figure out how to access the value it returns.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it doesn't return with a field name, I can't specify the field in the Schema.   I tried specifying a field to count...  e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select COUNT(Id) from Account &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then creating a schema with a single line:       Id  --&amp;gt;  Integer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No good.   Id returns null..  I played around with using "COUNT" as the Column name, changing to a String, etc.  Nothing works so far.  I know that I can always select only the Id, let it fetch every row and then look at the tSalesforceInput_1_NB_LINE value for my row count.  But I was trying to avoid the long run-time and the network traffic that occurs when retrieving every record.   Any ideas what I might put in that schema?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-and-COUNT/m-p/2319567#M89799</guid>
      <dc:creator>Aldo1</dc:creator>
      <dc:date>2024-11-15T22:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: tSalesforceInput and COUNT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-and-COUNT/m-p/2319568#M89800</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please try the below query :&lt;/P&gt;&lt;P&gt;Select COUNT(Id) total from Account&lt;/P&gt;&lt;P&gt;in the schema of tSalesforceInput, setup the total as the column name  as the below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Uxur4AAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150158i0340C8E2A17A5955/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Uxur4AAB.png" alt="0695b00000Uxur4AAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 01:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-and-COUNT/m-p/2319568#M89800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-29T01:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: tSalesforceInput and COUNT</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-and-COUNT/m-p/2319569#M89801</link>
      <description>&lt;P&gt;Works great.  Thank you!  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had tried using an alias in a SOQL query in the past and it failed.  I discovered back then that Salesforce rejects aliases unless they are used on aggregate functions / "group by" SOQL queries.  It must have slipped my mind.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 09:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSalesforceInput-and-COUNT/m-p/2319569#M89801</guid>
      <dc:creator>Aldo1</dc:creator>
      <dc:date>2022-09-08T09:40:19Z</dc:date>
    </item>
  </channel>
</rss>

