<?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: Get Column Names of Salesforce Table Given Salesforce Table Name in tFileInputDelimitted CSV File in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268456#M47014</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your helpful tips! I'm just having trouble understanding how to integrate the Salesforce Metadata API. Since I am writing my Java code within the tJavaRow component, is it even possible to write the java code to implement the Salesforce Metadata API? To clarify again what I am trying to do,&amp;nbsp;I am given 4 table names within a csv file that exist in the Salesforce schema located in the Metadata section of the Talend Repositories Panel, shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-05-11 at 10.45.05 AM.png" style="width: 687px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu0s.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140233iDAF17DDC168B31C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu0s.png" alt="0683p000009Lu0s.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;So say the current table being processed by the tJavaRow code is "Account". I want to be able to get all of its columns that exist within it, but the code has to be written inside the tJavaRow component. To clarify again, here is the tJavaRow component code.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-05-10 at 12.31.03 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu8g.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129264i684A63FF8ED267EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu8g.png" alt="0683p000009Lu8g.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My question now is, is it even possible to write code for the Salesforce Metadata API within this component? I need to be able to make that SOQL query have dynamic field names, so there must be a way to access it given the table name from the csv file, which in this case is stored in the TabName1 variable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I know that my request sounds very complex and that I'm repeating myself, but I am new to Talend and Salesforce and have a tight deadline to complete this goal. Any help on how to implement the Salesforce API to get the column names given the table name from csv file by writing code in the tJavaRow component would be greatly appreciated. Thanks again everyone for your continued help!&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 16:16:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-12T16:16:42Z</dc:date>
    <item>
      <title>Get Column Names of Salesforce Table Given Salesforce Table Name in tFileInputDelimitted CSV File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268451#M47009</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a Talend job that takes in 3 salesforce table name strings given in an input csv file and queries them for one column, "name". I created a tJavaRow component where I am able to loop through all table names in the input file and query them like so: "Select Name from " + TableName + " limit 10"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However, I want to be able to get all the columns of the table and query them each. Basically, I want the query to look like this:&lt;/P&gt; 
&lt;P&gt;"Select " + fieldName + "from " + TableName + " limit 10"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm having trouble figuring out how to get all the column names of the salesforce table from the input file. Is there any possible way to do this? Below you will find my job design and tJavaRow code screenshots. Thanks in advance to anyone who can help!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Job Design&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-05-10 at 12.27.53 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu8f.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130408iE8DB17EF1D460B1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu8f.png" alt="0683p000009Lu8f.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tJavaRow Component Code&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-05-10 at 12.31.03 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu8g.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129264i684A63FF8ED267EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu8g.png" alt="0683p000009Lu8g.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268451#M47009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Names of Salesforce Table Given Salesforce Table Name in tFileInputDelimitted CSV File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268452#M47010</link>
      <description>&lt;P&gt;it depend - what format of Your csv file (may require different methods)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example - for read all column names from header line, read only 1 row and split it&lt;/P&gt;&lt;P&gt;for not guess and produce ideas, could You attach example - what Your source?&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 23:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268452#M47010</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-05-10T23:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Names of Salesforce Table Given Salesforce Table Name in tFileInputDelimitted CSV File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268453#M47011</link>
      <description>&lt;P&gt;Hi vapukov,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your reply. Actually, the column names are not in the excel file. My goal is to get the column names dynamically from the salesforce schema that exists in the talend Metadata panel. So based on the table name, which does exist in the csv file, I want to get the column name from the schema. Here is the excel file formatted with Table name, schema, and last run time.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;input csv&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-05-11 at 10.41.18 AM.png" style="width: 456px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuQZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133669iCAAA7332CD51EFFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuQZ.png" alt="0683p000009LuQZ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The salesforce schema exists in the metadata section, which exists in the repository panel in Talend. Here is the screenshot:&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Metadata Salesforce section&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-05-11 at 10.45.05 AM.png" style="width: 687px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu0s.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140233iDAF17DDC168B31C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu0s.png" alt="0683p000009Lu0s.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way I can get the column name of the table from the csv file? I want to be able to access that salesforce metadata from the tJavaRow component. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 15:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268453#M47011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T15:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Names of Salesforce Table Given Salesforce Table Name in tFileInputDelimitted CSV File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268454#M47012</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Sorry, but your request is still not very clear IMHO. Just one point, if you want to get Salesforce metadata, you need to go with the Salesforce metadata API which is dedicated to this purpose (not the Rest/Soap API you use to get/put data from/to Salesforce).&lt;BR /&gt;Refer to the Salesforce documentation for details.</description>
      <pubDate>Thu, 11 May 2017 20:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268454#M47012</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-11T20:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Names of Salesforce Table Given Salesforce Table Name in tFileInputDelimitted CSV File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268455#M47013</link>
      <description>&lt;P&gt;agree with&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;- better to check Salesforce API for this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Talend metadata not available for loop with code or components (similar as Information Schema is databases where You can select all columns, types and etc)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 22:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268455#M47013</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-05-11T22:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Names of Salesforce Table Given Salesforce Table Name in tFileInputDelimitted CSV File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268456#M47014</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your helpful tips! I'm just having trouble understanding how to integrate the Salesforce Metadata API. Since I am writing my Java code within the tJavaRow component, is it even possible to write the java code to implement the Salesforce Metadata API? To clarify again what I am trying to do,&amp;nbsp;I am given 4 table names within a csv file that exist in the Salesforce schema located in the Metadata section of the Talend Repositories Panel, shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-05-11 at 10.45.05 AM.png" style="width: 687px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu0s.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140233iDAF17DDC168B31C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu0s.png" alt="0683p000009Lu0s.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;So say the current table being processed by the tJavaRow code is "Account". I want to be able to get all of its columns that exist within it, but the code has to be written inside the tJavaRow component. To clarify again, here is the tJavaRow component code.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-05-10 at 12.31.03 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu8g.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129264i684A63FF8ED267EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu8g.png" alt="0683p000009Lu8g.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My question now is, is it even possible to write code for the Salesforce Metadata API within this component? I need to be able to make that SOQL query have dynamic field names, so there must be a way to access it given the table name from the csv file, which in this case is stored in the TabName1 variable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I know that my request sounds very complex and that I'm repeating myself, but I am new to Talend and Salesforce and have a tight deadline to complete this goal. Any help on how to implement the Salesforce API to get the column names given the table name from csv file by writing code in the tJavaRow component would be greatly appreciated. Thanks again everyone for your continued help!&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 16:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268456#M47014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-12T16:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Names of Salesforce Table Given Salesforce Table Name in tFileInputDelimitted CSV File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268457#M47015</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry no time to go in details now but Salesforce metadata API should be accessed using tRest family components, not tJava family. 1st try to get documentation from Salesforce regarding this API with Java example, then translate these examples to Talend (or maybe an other&amp;nbsp;guy have the response ready)&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 21:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268457#M47015</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-12T21:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Names of Salesforce Table Given Salesforce Table Name in tFileInputDelimitted CSV File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268458#M47016</link>
      <description>&lt;P&gt;Hi, Were you able to resolve this? Please help with solution&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 21:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268458#M47016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-21T21:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get Column Names of Salesforce Table Given Salesforce Table Name in tFileInputDelimitted CSV File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268459#M47017</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOn9AAG"&gt;@sheenz611&lt;/A&gt;, thank's to open a new topic&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 12:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Column-Names-of-Salesforce-Table-Given-Salesforce-Table-Name/m-p/2268459#M47017</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-09-22T12:44:29Z</dc:date>
    </item>
  </channel>
</rss>

