<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to add item(s) to 2 Sharepoint Lists?</title><link>https://www.infopathdev.com:443/forums/thread/81788.aspx</link><pubDate>Sat, 18 Aug 2012 09:16:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81788</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81788.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=81788</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;esb1922:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;On Submit I need not only&amp;nbsp;to add an item to the Library but also to add one item to the List1 and multiple items to the List2&lt;br /&gt;I use 2 CAMLs and 2 web service connections (having 2 fields on the form with lists&amp;#39; GUIDs). Something like this -&lt;/p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;Dim&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt; batch1 &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; XPathNavigator = DataSources(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;CamlAddToItemDetails&amp;quot;&lt;/span&gt;).CreateNavigator()&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;batch1.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;/Batch/Method/Field[@Name=&amp;#39;ItemId&amp;#39;]&amp;quot;&lt;/span&gt;, NamespaceManager).SetValue(ItemId)&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;batch1.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Commodity&amp;#39;]&amp;quot;&lt;/span&gt;, NamespaceManager).SetValue(Commod)&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;DataConnections(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;WebServiceSubmitToItemDetails&amp;quot;&lt;/span&gt;).Execute()&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;‘Loop to Add multiple rows to the second list&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;While&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt; (condition)&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;#39;Get vars &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;step, stepOrder, etc&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;Dim&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt; batch2 &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; XPathNavigator = DataSources(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;CamlAddToItemSteps&amp;quot;&lt;/span&gt;).CreateNavigator()&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;batch2.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;/Batch/Method/Field[@Name=&amp;#39;ItemId&amp;#39;]&amp;quot;&lt;/span&gt;, NamespaceManager).SetValue(ItemId)&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;batch2.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Step&amp;#39;]&amp;quot;&lt;/span&gt;, NamespaceManager).SetValue(step)&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;batch2.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;/Batch/Method/Field[@Name=&amp;#39;StepOrder&amp;#39;]&amp;quot;&lt;/span&gt;, NamespaceManager).SetValue(stepOrder)&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;MessageBox.Show(vars to add) &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;DataConnections(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;WebServiceSubmitToItemSteps&amp;quot;&lt;/span&gt;).Execute()&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="COLOR:blue;"&gt;End&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;While&lt;/span&gt;&lt;/span&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Items in the first list are created with no problem&amp;nbsp;and the second CAML fails to add but I don&amp;#39;t get any error messages. What could that be? &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;You have 2 webservice connections but execute in code only one... &lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to add item(s) to 2 Sharepoint Lists?</title><link>https://www.infopathdev.com:443/forums/thread/81758.aspx</link><pubDate>Fri, 17 Aug 2012 15:53:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81758</guid><dc:creator>esb1922</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81758.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=81758</wfw:commentRss><description>&lt;p&gt;On Submit I need not only&amp;nbsp;to add an item to the Library but also to add one item to the List1 and multiple items to the List2&lt;br /&gt;I use 2 CAMLs and 2 web service connections (having 2 fields on the form with lists&amp;#39; GUIDs). Something like this -&lt;/p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;Dim&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt; batch1 &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; XPathNavigator = DataSources(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;CamlAddToItemDetails&amp;quot;&lt;/span&gt;).CreateNavigator()&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;batch1.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;/Batch/Method/Field[@Name=&amp;#39;ItemId&amp;#39;]&amp;quot;&lt;/span&gt;, NamespaceManager).SetValue(ItemId)&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;batch1.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Commodity&amp;#39;]&amp;quot;&lt;/span&gt;, NamespaceManager).SetValue(Commod)&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;DataConnections(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;WebServiceSubmitToItemDetails&amp;quot;&lt;/span&gt;).Execute()&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;‘Loop to Add multiple rows to the second list&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;While&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt; (condition)&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;#39;Get vars &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;step, stepOrder, etc&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;Dim&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt; batch2 &lt;span style="COLOR:blue;"&gt;As&lt;/span&gt; XPathNavigator = DataSources(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;CamlAddToItemSteps&amp;quot;&lt;/span&gt;).CreateNavigator()&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;batch2.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;/Batch/Method/Field[@Name=&amp;#39;ItemId&amp;#39;]&amp;quot;&lt;/span&gt;, NamespaceManager).SetValue(ItemId)&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;batch2.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Step&amp;#39;]&amp;quot;&lt;/span&gt;, NamespaceManager).SetValue(step)&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;batch2.SelectSingleNode(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;/Batch/Method/Field[@Name=&amp;#39;StepOrder&amp;#39;]&amp;quot;&lt;/span&gt;, NamespaceManager).SetValue(stepOrder)&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;MessageBox.Show(vars to add) &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;DataConnections(&lt;span style="COLOR:#a31515;"&gt;&amp;quot;WebServiceSubmitToItemSteps&amp;quot;&lt;/span&gt;).Execute()&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="COLOR:blue;"&gt;End&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;While&lt;/span&gt;&lt;/span&gt; 
&lt;p&gt;
&lt;p&gt;Items in the first list are created with no problem&amp;nbsp;and the second CAML fails to add but I don&amp;#39;t get any error messages. What could that be?&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>