<?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 loading related objects with single output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310836#M81924</link>
    <description>&lt;P&gt;One clarifications.&amp;nbsp; The tHashout component only has "On Component Ok" trigger, I assume I use that correct?&amp;nbsp; The tHashInput has both "On Component Ok" and "On Subjob Ok".&amp;nbsp; &amp;nbsp;So I use the "On Subjob Ok" trigger to connect to child object flow, correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help on this.&lt;/P&gt;</description>
    <pubDate>Sun, 19 Aug 2018 18:33:42 GMT</pubDate>
    <dc:creator>mcomstobe</dc:creator>
    <dc:date>2018-08-19T18:33:42Z</dc:date>
    <item>
      <title>Salesforce loading related objects with single output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310831#M81919</link>
      <description>&lt;P&gt;I have talend job that works as designed, except that I need to create a parent-child relationship between the two custom objects and to do so i need the first custom object to load before the second custom object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have read a bunch of documentation, regarding the tFixedInputFlow, but because I need the output of the tmap for both tsalesforceoutput components I don't believe this will work.&amp;nbsp; I have also tried to use tSleep to pause the second/related custom object, so the first custom object can load completely and this did not work either.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am I missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached a simple representation of the real job, and all I want to do is load the patient output completely, before the patient_encounter output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your help is greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310831#M81919</guid>
      <dc:creator>mcomstobe</dc:creator>
      <dc:date>2024-11-16T07:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce loading related objects with single output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310832#M81920</link>
      <description>&lt;P&gt;It's always the last thing you try that works.&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I got it working by using the tSleep and most importantly I unchecked the "Extend Insert" on the Patient tsalesforceoutput.&amp;nbsp; I believe by unchecking the "Extend Insert" each patient record is committed one by one, thus allowing the Patient_Encounter to find the related patient record on insert.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Aug 2018 15:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310832#M81920</guid>
      <dc:creator>mcomstobe</dc:creator>
      <dc:date>2018-08-19T15:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce loading related objects with single output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310833#M81921</link>
      <description>This is really not a good design option.&lt;BR /&gt;Consider to have 2 separate subjobs, 1 for each object and complete the parent object injection before to go with child object. Both subjobs must be linked by an onSubjobOk link.</description>
      <pubDate>Sun, 19 Aug 2018 16:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310833#M81921</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-08-19T16:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce loading related objects with single output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310834#M81922</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how do I utilize the data coming out of the tmap into the two subjobs?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Aug 2018 17:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310834#M81922</guid>
      <dc:creator>mcomstobe</dc:creator>
      <dc:date>2018-08-19T17:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce loading related objects with single output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310835#M81923</link>
      <description>For the parent object, you can let as it is.
&lt;BR /&gt;For the child object, store the records in memory using a tHashOutput.
&lt;BR /&gt;On next subjob, get the memorized records using a tHashInput linked with the previous tHashOutput.
&lt;BR /&gt;If you don't find these components in the palette, you need to add them manually (see related posts about this subject).</description>
      <pubDate>Sun, 19 Aug 2018 18:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310835#M81923</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-08-19T18:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce loading related objects with single output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310836#M81924</link>
      <description>&lt;P&gt;One clarifications.&amp;nbsp; The tHashout component only has "On Component Ok" trigger, I assume I use that correct?&amp;nbsp; The tHashInput has both "On Component Ok" and "On Subjob Ok".&amp;nbsp; &amp;nbsp;So I use the "On Subjob Ok" trigger to connect to child object flow, correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help on this.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Aug 2018 18:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310836#M81924</guid>
      <dc:creator>mcomstobe</dc:creator>
      <dc:date>2018-08-19T18:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce loading related objects with single output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310837#M81925</link>
      <description>Not really.&lt;BR /&gt;Connect your tMSSQLInput to the tHashInput using the onSubjobOk trigger.&lt;BR /&gt;This the 1rst subjob will inject records into the parent object and store records for the child object into the tHashOutput.&lt;BR /&gt;Then, the 2nd subjob will get child records from the tHashInput and inject them into Salesforce.</description>
      <pubDate>Sun, 19 Aug 2018 18:43:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310837#M81925</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-08-19T18:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce loading related objects with single output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310838#M81926</link>
      <description>&lt;P&gt;I don't think it is exactly what I am after.&amp;nbsp; I am processing a set of database records and splitting the data via a tmap into two outputs.&amp;nbsp; Output 1 is used to create a patient record in a salesforce custom object, and Output 2 is used to create a patient encounter in a salesforce custom object (and relates it to the previously created patient records).&amp;nbsp; When I create the patient encounter I am using the relations lookup and need to make sure all the patient records have all been created before the patient encounter does the lookup.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The challenge is I have to process the source record all the same time, so I am trying to make sure the patients are created before the related patient encounters.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope this helps.&amp;nbsp; Thanks again for the help.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Aug 2018 19:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310838#M81926</guid>
      <dc:creator>mcomstobe</dc:creator>
      <dc:date>2018-08-19T19:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce loading related objects with single output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310839#M81927</link>
      <description>This is a very common use case and the solution I proposed is exactly what you need to do in such a case. 
&lt;BR /&gt;Imagine you have 1,000,000 records to inject for parent object, then to child object. Do you think you can insert records 1 at a time? 
&lt;BR /&gt;No, you will use bulk components and you will cut the job in 2 subjob, exactly as I proposed. 
&lt;BR /&gt;Believe me, I did it for hundreds of jobs.</description>
      <pubDate>Sun, 19 Aug 2018 20:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310839#M81927</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-08-19T20:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce loading related objects with single output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310840#M81928</link>
      <description>&lt;P&gt;Ok, you have me sold.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still confused on your suggestion, if I need to trigger the subjobs using the two outputs from the tMap.&amp;nbsp; Your suggestions was the single output of the TMssqlInput, this won't work in my scenario (or I am missing something).&amp;nbsp; I have attached an image of the flow.&amp;nbsp; Where would i insert the thashout and thashinput to get the Add_EhrEncounters to run second?&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LtQL"&gt;Capture_subjobflow.PNG&lt;/A&gt;</description>
      <pubDate>Sun, 19 Aug 2018 20:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310840#M81928</guid>
      <dc:creator>mcomstobe</dc:creator>
      <dc:date>2018-08-19T20:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce loading related objects with single output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310841#M81929</link>
      <description>Remove the tSleep and replace the Add_EhrEncounters by a tHashOutput.
&lt;BR /&gt;Add a tHashInput connected to the tMSSQLInput by an onSubjobOk trigger.
&lt;BR /&gt;Connect the Add_EhrEncounters to this tHashInput. Don't forget to refer the tHashOutput from the tHashInput and to to set the schema.</description>
      <pubDate>Sun, 19 Aug 2018 21:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Salesforce-loading-related-objects-with-single-output/m-p/2310841#M81929</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-08-19T21:30:51Z</dc:date>
    </item>
  </channel>
</rss>

