<?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: keeping &amp;quot;retrieve inserted id&amp;quot; values with tsalesforceoutput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/keeping-quot-retrieve-inserted-id-quot-values-with/m-p/2359765#M124492</link>
    <description>Hi&amp;nbsp; 
&lt;BR /&gt;Use a tFlowToIterate component to iterate the incoming data from mssql table, so that you access other columns on other component after retrieving the inserted id, for example: 
&lt;BR /&gt;tMssqlInput--main(row1)--tFlowToIterate--iterate--&amp;gt;tFixedFlowInput_1--main--tSalesforceOutput_1--main--tMap_1--&amp;gt;tSalesforceOutput_2--main--tMap_3--main--tSalesForceOutput_3 
&lt;BR /&gt;on tFixedFlowInput_1: generate the current data with the first 8 columns for inserting into&amp;nbsp; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;accounts model&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;, for example: define a column called columnName, string type, on the schema, and then, select the "Using single Table" mode and set the column values:&lt;/FONT&gt; 
&lt;BR /&gt;(String)globalMap.get("row1.columnName") 
&lt;BR /&gt;// or (Integer) 
&lt;FONT size="2"&gt;globalMap.get("row1.columnName") for Integer/int type&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;// or&amp;nbsp;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;(java.util.Date)&lt;/FONT&gt; 
&lt;FONT size="2"&gt;globalMap.get("row1.columnName") for Date type&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;// or other type&lt;/FONT&gt; 
&lt;BR /&gt;on tMap: in the output table of tMap, define the current data with another 12 columns as you did on tFixedFlowInput. 
&lt;BR /&gt;Hope this will help you. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Thu, 31 Jul 2014 08:12:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-31T08:12:57Z</dc:date>
    <item>
      <title>keeping "retrieve inserted id" values with tsalesforceoutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/keeping-quot-retrieve-inserted-id-quot-values-with/m-p/2359764#M124491</link>
      <description>I have a manual salesforce insert routine that I'm trying to replicate in Talend, and I think maybe I just need a slightly different approach. 
&lt;BR /&gt; 
&lt;BR /&gt;Manual version: I read a view from mssql with student records and about 25 columns. I insert 8 columns into accounts and get back an accountid for each one which gets added as a column to the recordset. Then I insert 12 or so columns into contacts, one of those columns being the accountid. Now the new contactid is also added as a column in the recordset. Then I insert the remaining 5 columns plus the accountid and contactid to a custom salesforce object, and it returns the id for that column, which also gets added as a new column in the recordset. After the 3 rounds of inserts, I go back to the original mssql database and store the 3 salesforce id values. 
&lt;BR /&gt; 
&lt;BR /&gt;Talend version: I read the view from mssql, have it feed into a tmap, and map the 8 pertinent account columns to feed into a tsalesforceoutput/insert. I have "retrieve inserted id" turned on, and the accountid values&amp;nbsp;do come back successfully, but the column gets added to the 8-column recordset that came OUT of the tmap, not the recordset that went INTO the tmap. Once I've inserted these 8 columns into accounts, I need to insert contacts, but the columns containing the contact information don't exist anymore except in the original recordset. I can't seem to pass through the rest of the columns through the tmap. How do I get the accountid back into the original recordset and have that recordset feed into a new tmap for purpose of inserting contacts and have the new accountid available as a column?</description>
      <pubDate>Sat, 16 Nov 2024 11:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/keeping-quot-retrieve-inserted-id-quot-values-with/m-p/2359764#M124491</guid>
      <dc:creator>JasonMiller</dc:creator>
      <dc:date>2024-11-16T11:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: keeping "retrieve inserted id" values with tsalesforceoutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/keeping-quot-retrieve-inserted-id-quot-values-with/m-p/2359765#M124492</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;Use a tFlowToIterate component to iterate the incoming data from mssql table, so that you access other columns on other component after retrieving the inserted id, for example: 
&lt;BR /&gt;tMssqlInput--main(row1)--tFlowToIterate--iterate--&amp;gt;tFixedFlowInput_1--main--tSalesforceOutput_1--main--tMap_1--&amp;gt;tSalesforceOutput_2--main--tMap_3--main--tSalesForceOutput_3 
&lt;BR /&gt;on tFixedFlowInput_1: generate the current data with the first 8 columns for inserting into&amp;nbsp; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;accounts model&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;, for example: define a column called columnName, string type, on the schema, and then, select the "Using single Table" mode and set the column values:&lt;/FONT&gt; 
&lt;BR /&gt;(String)globalMap.get("row1.columnName") 
&lt;BR /&gt;// or (Integer) 
&lt;FONT size="2"&gt;globalMap.get("row1.columnName") for Integer/int type&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;// or&amp;nbsp;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;(java.util.Date)&lt;/FONT&gt; 
&lt;FONT size="2"&gt;globalMap.get("row1.columnName") for Date type&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;// or other type&lt;/FONT&gt; 
&lt;BR /&gt;on tMap: in the output table of tMap, define the current data with another 12 columns as you did on tFixedFlowInput. 
&lt;BR /&gt;Hope this will help you. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 31 Jul 2014 08:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/keeping-quot-retrieve-inserted-id-quot-values-with/m-p/2359765#M124492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-31T08:12:57Z</dc:date>
    </item>
  </channel>
</rss>

