<?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: Salesforce metadata to sql table (create table) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-metadata-to-sql-table-create-table/m-p/2275454#M51828</link>
    <description>&lt;P&gt;Yes it is, you have to code it by yourself using the salesforce metadata API.&lt;/P&gt;
&lt;P&gt;The following lines will give&amp;nbsp;you access to the metadata for objectName object and to an array with all fields:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DescribeSObjectResult describeSObjectResult = salesforceConnection.describeSObject(objectName);
Field[] fields = describeSObjectResult.getFields();&lt;/PRE&gt;
&lt;P&gt;Then you can access name, label, datatype and so on for all fields with &lt;FONT face="courier new,courier"&gt;getName()&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;getLabel()&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;getType()&lt;/FONT&gt; methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look here&amp;nbsp;&lt;A href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_intro.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_intro.htm&lt;/A&gt;&amp;nbsp;or googlelize for salesforce metadata api example.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2020 07:28:55 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2020-01-30T07:28:55Z</dc:date>
    <item>
      <title>Salesforce metadata to sql table (create table)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-metadata-to-sql-table-create-table/m-p/2275453#M51827</link>
      <description>&lt;P&gt;Hi, is it possible to use Talend to create a table in SQL Server with the exact metadata as one Salesforce object? The purpose is to copy all records from salesforce to sql server, but for that we first need to have the exact fields...even the hidden fields!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-metadata-to-sql-table-create-table/m-p/2275453#M51827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce metadata to sql table (create table)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-metadata-to-sql-table-create-table/m-p/2275454#M51828</link>
      <description>&lt;P&gt;Yes it is, you have to code it by yourself using the salesforce metadata API.&lt;/P&gt;
&lt;P&gt;The following lines will give&amp;nbsp;you access to the metadata for objectName object and to an array with all fields:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DescribeSObjectResult describeSObjectResult = salesforceConnection.describeSObject(objectName);
Field[] fields = describeSObjectResult.getFields();&lt;/PRE&gt;
&lt;P&gt;Then you can access name, label, datatype and so on for all fields with &lt;FONT face="courier new,courier"&gt;getName()&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;getLabel()&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;getType()&lt;/FONT&gt; methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look here&amp;nbsp;&lt;A href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_intro.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_intro.htm&lt;/A&gt;&amp;nbsp;or googlelize for salesforce metadata api example.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 07:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-metadata-to-sql-table-create-table/m-p/2275454#M51828</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-01-30T07:28:55Z</dc:date>
    </item>
  </channel>
</rss>

