<?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 How to dynamically insert rest xml records in MsSql in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-insert-rest-xml-records-in-MsSql/m-p/2364481#M128219</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm a beginner in Talend and&amp;nbsp;a non native english speaker,&amp;nbsp;so thank you for forgiving me for my mistakes&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9vn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158170iC9C1E6D2BD8C1493/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9vn.png" alt="0683p000009M9vn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;I explain the context:&amp;nbsp;I have already created a job, which allows me to dynamically generate all the different tables with their columns from a WebService (Microsoft CRM) but now I would like to register each entity received in the existing table.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;I have a rest xml webservice, who sent me this result (I simplified everything for a better understanding) :&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.hostingpics.net/viewer.php?id=173757xmlResult.png" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG src="https://community.qlik.com/" border="0" alt="Heberger image" /&gt;&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;The "logicalname" is the &lt;SPAN&gt;MSSQL&amp;nbsp;&lt;/SPAN&gt;table.&lt;/P&gt; 
&lt;P&gt;The "key" attribute is the MSSQL column and the "value" attribute the corresponding value.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I do that?&lt;/P&gt; 
&lt;P&gt;Indeed, at the moment I tried to generate the request Sql via "tXMLMap" and "tNormalize" but without success. I now think of trying to fill a csv file, and use this one to import it into database. Is this a good way to do it?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If it can help you, here is all my job:&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;The first part here works, it allows me to create all the tables and their specific columns thank to another webservice call.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.hostingpics.net/viewer.php?id=231044jobpart1.png" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG src="https://community.qlik.com/" border="0" alt="Heberger image" /&gt;&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It's this loop that causes me problems, for each table created, I try to recover the associated data (GetAllEntityDate send me the XML above &amp;amp; it missing MsSQL insert part):&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.hostingpics.net/viewer.php?id=390800jobpart2.png" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG src="https://community.qlik.com/" border="0" alt="Heberger image" /&gt;&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thank you in advance for your help and advice.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Rémy&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 09:13:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T09:13:56Z</dc:date>
    <item>
      <title>How to dynamically insert rest xml records in MsSql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-insert-rest-xml-records-in-MsSql/m-p/2364481#M128219</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm a beginner in Talend and&amp;nbsp;a non native english speaker,&amp;nbsp;so thank you for forgiving me for my mistakes&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9vn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158170iC9C1E6D2BD8C1493/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9vn.png" alt="0683p000009M9vn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;I explain the context:&amp;nbsp;I have already created a job, which allows me to dynamically generate all the different tables with their columns from a WebService (Microsoft CRM) but now I would like to register each entity received in the existing table.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;I have a rest xml webservice, who sent me this result (I simplified everything for a better understanding) :&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.hostingpics.net/viewer.php?id=173757xmlResult.png" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG src="https://community.qlik.com/" border="0" alt="Heberger image" /&gt;&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;The "logicalname" is the &lt;SPAN&gt;MSSQL&amp;nbsp;&lt;/SPAN&gt;table.&lt;/P&gt; 
&lt;P&gt;The "key" attribute is the MSSQL column and the "value" attribute the corresponding value.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I do that?&lt;/P&gt; 
&lt;P&gt;Indeed, at the moment I tried to generate the request Sql via "tXMLMap" and "tNormalize" but without success. I now think of trying to fill a csv file, and use this one to import it into database. Is this a good way to do it?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If it can help you, here is all my job:&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;The first part here works, it allows me to create all the tables and their specific columns thank to another webservice call.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.hostingpics.net/viewer.php?id=231044jobpart1.png" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG src="https://community.qlik.com/" border="0" alt="Heberger image" /&gt;&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It's this loop that causes me problems, for each table created, I try to recover the associated data (GetAllEntityDate send me the XML above &amp;amp; it missing MsSQL insert part):&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.hostingpics.net/viewer.php?id=390800jobpart2.png" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG src="https://community.qlik.com/" border="0" alt="Heberger image" /&gt;&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thank you in advance for your help and advice.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Rémy&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-insert-rest-xml-records-in-MsSql/m-p/2364481#M128219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically insert rest xml records in MsSql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-insert-rest-xml-records-in-MsSql/m-p/2364482#M128220</link>
      <description>Hi Remy
&lt;BR /&gt;If I understand the request well, you need to use a tExtractXMLField to extract the records from response if the webservice returns a String response or tXMLMap to extract the records from reponse if the webservice returns a Document, and then iterate each records and use a tMssqlRow to execute an insert statement for inserting each record one by one. 
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 10 Oct 2017 14:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-insert-rest-xml-records-in-MsSql/m-p/2364482#M128220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T14:10:23Z</dc:date>
    </item>
  </channel>
</rss>

