<?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 Relationship SOQL Query not returning related fields in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Relationship-SOQL-Query-not-returning-related-fields/m-p/2202369#M4089</link>
    <description>In this case all the fields are native Salesforce so there is no need for the __c. I did try every variant I could think of for the field names in the schema since I know they have to be formatted correctly. In the example I listed Owner_Name the Parent query field (Owner.Name = Owner_Name) works fine but I haven't been able to crack the code on the child query fields. Any help appreciated.&amp;nbsp;</description>
    <pubDate>Wed, 25 Mar 2015 14:01:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-25T14:01:47Z</dc:date>
    <item>
      <title>Salesforce Relationship SOQL Query not returning related fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Relationship-SOQL-Query-not-returning-related-fields/m-p/2202367#M4087</link>
      <description>I'm trying to run a manual SOQL query in a simple job with these components: tSalesforceInput --&amp;gt; tLogRow 
&lt;BR /&gt; 
&lt;B&gt;The query&lt;/B&gt;: 
&lt;BR /&gt;SELECT Name, BillingStreet, Owner.Name, (SELECT Name, Phone,MobilePhone FROM Contacts WHERE Primary__c=true) FROM Account WHERE Status__c = 'Active Customer' 
&lt;BR /&gt; 
&lt;B&gt;The background&lt;/B&gt;: 
&lt;BR /&gt;I can run this query in Salesforce's Workbench and it returns records with values in each field. In tSalesforceInput I've defined my schema as (all strings): 
&lt;BR /&gt;Name 
&lt;BR /&gt;BillingStreet 
&lt;BR /&gt;Owner_Name 
&lt;BR /&gt;Contacts_Name 
&lt;BR /&gt;Contacts_Phone 
&lt;BR /&gt;Contacts_MobilePhone 
&lt;BR /&gt; 
&lt;B&gt;The problem&lt;/B&gt;: 
&lt;BR /&gt;I get all the expected records back, however no values are visible in the Contacts_Name, Contacts_Phone and Contacts_MobilePhone fields. The first three fields are populated as expected.&amp;nbsp; 
&lt;BR /&gt;Does anyone know how to return values in a relationship query like this one? I suspect that the field name in the schema is important, but I haven't been able to figure it out.&amp;nbsp; 
&lt;BR /&gt;Thanks in advance for any help! 
&lt;BR /&gt;Mike</description>
      <pubDate>Sat, 16 Nov 2024 11:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-Relationship-SOQL-Query-not-returning-related-fields/m-p/2202367#M4087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce Relationship SOQL Query not returning related fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Relationship-SOQL-Query-not-returning-related-fields/m-p/2202368#M4088</link>
      <description>Hi,&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Have you tried to add the '__c' on the column name on schema. Note that the filed name is case-sensitive.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 25 Mar 2015 09:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-Relationship-SOQL-Query-not-returning-related-fields/m-p/2202368#M4088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-25T09:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce Relationship SOQL Query not returning related fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Relationship-SOQL-Query-not-returning-related-fields/m-p/2202369#M4089</link>
      <description>In this case all the fields are native Salesforce so there is no need for the __c. I did try every variant I could think of for the field names in the schema since I know they have to be formatted correctly. In the example I listed Owner_Name the Parent query field (Owner.Name = Owner_Name) works fine but I haven't been able to crack the code on the child query fields. Any help appreciated.&amp;nbsp;</description>
      <pubDate>Wed, 25 Mar 2015 14:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-Relationship-SOQL-Query-not-returning-related-fields/m-p/2202369#M4089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-25T14:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce Relationship SOQL Query not returning related fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-Relationship-SOQL-Query-not-returning-related-fields/m-p/2202370#M4090</link>
      <description>Agreed, this does not work with Parent-to-child queries like this. &amp;nbsp;I have also tried all combinations.
&lt;BR /&gt;If you change the query to Child-to-parent, then it works with the "parent_" prefix for your schema. &amp;nbsp;But doing it that way will NOT get you those parents that do not have any children. &amp;nbsp;The only way to get that, is with the parent-to-child query like the one shown. &amp;nbsp;
&lt;BR /&gt;Or, to make multiple passes and tJoin/tMap.</description>
      <pubDate>Thu, 08 Oct 2015 15:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-Relationship-SOQL-Query-not-returning-related-fields/m-p/2202370#M4090</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-10-08T15:23:31Z</dc:date>
    </item>
  </channel>
</rss>

