<?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: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/107638.aspx</link><pubDate>Fri, 05 Aug 2016 18:13:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107638</guid><dc:creator>EliLawson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107638.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=107638</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Using 2010, same method.&amp;nbsp; Mine just ignores the Filter and sets the value to all Fields.&lt;br /&gt;&lt;br /&gt;&amp;lt;xsf:assignmentAction targetField=&amp;quot;xdXDocument:GetDOM(&amp;amp;quot;Allegations&amp;amp;quot;)/Batch/Method/Field[@Name = &amp;amp;quot;Disposition&amp;amp;quot;]&amp;quot; expression=&amp;quot;d:Disposition&amp;quot;&amp;gt;&amp;lt;/xsf:assignmentAction&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here is the XML:&lt;/p&gt;&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;Batch OnError=&amp;quot;Continue&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Method ID=&amp;quot;1&amp;quot; Cmd=&amp;quot;Update&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Field Name=&amp;quot;Title&amp;quot;&amp;gt;&amp;lt;/Field&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Field Name=&amp;quot;Disposition&amp;quot;&amp;gt;&amp;lt;/Field&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Field Name=&amp;quot;MCI&amp;quot;&amp;gt;&amp;lt;/Field&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Field Name=&amp;quot;ID&amp;quot;&amp;gt;&amp;lt;/Field&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Method&amp;gt;&lt;br /&gt;&amp;lt;/Batch&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/105846.aspx</link><pubDate>Thu, 17 Mar 2016 17:45:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105846</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=105846</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for letting me know! I also updated the URL in my mention above in case someone doesn&amp;#39;t read down all the way. :)&lt;/p&gt;</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/105844.aspx</link><pubDate>Thu, 17 Mar 2016 17:38:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105844</guid><dc:creator>WonderLaura</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105844.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=105844</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hilary,&lt;/p&gt;&lt;p&gt;Thanks&amp;nbsp;for referencing my post.&amp;nbsp; I&amp;#39;ve just migrated my blog, so the URL has changed: &lt;a href="http://wonderlaura.com/2011/8/1/infopath-query-specific-sharepoint-list-data"&gt;http://wonderlaura.com/2011/8/1/infopath-query-specific-sharepoint-list-data&lt;/a&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/104953.aspx</link><pubDate>Thu, 17 Dec 2015 22:06:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104953</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104953.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=104953</wfw:commentRss><description>Deleting is going to be hard, for the exact reason you mention - how do you know what was deleted? I&amp;#39;d probably add a &amp;quot;delete&amp;quot; button to my table and teach users to use that instead. Add a column named &amp;quot;Removed&amp;quot; to your list, add a hidden field called removed to your form. Hide rows in the form table where Removed = true, and then, on the delete button in the form, set removed to true. That way you can hide stuff in the list / form that the user wants to delete.</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/104950.aspx</link><pubDate>Thu, 17 Dec 2015 17:26:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104950</guid><dc:creator>jpl18lal22</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104950.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=104950</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hilary, Thank your help. I know this was several months ago, but finally I got around to troubleshooting and was able to get the updating to work. I did have to use the ID instead of the URL.&amp;nbsp;&lt;/p&gt;&lt;p&gt; I wanted to see if there were any suggestions on how to delete a record if they delete it from the repeating table? Since the record is deleted, I&amp;#39;m not sure how to grab the ID.&lt;/p&gt;</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/103363.aspx</link><pubDate>Wed, 22 Jul 2015 21:01:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103363</guid><dc:creator>jpl18lal22</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103363.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=103363</wfw:commentRss><description>Hilary thank you for your patience! This is quickly stretching my InfoPath skills. I will take a closer look at this and see if I can make something work. I may be back with questions. :)</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/103354.aspx</link><pubDate>Wed, 22 Jul 2015 18:23:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103354</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103354.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=103354</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;In your new data connection, you should see query fields and data fields. You can set a query field in the list to a value (in this case it will be this URL value that you submitted to the list originally) and then query for data - here&amp;#39;s a blog post with some info: &lt;a href="http://wonderlaura.com/2011/8/1/infopath-query-specific-sharepoint-list-data/"&gt;http://wonderlaura.com/2011/8/1/infopath-query-specific-sharepoint-list-data/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;You&amp;#39;ll have to add some form logic to update your CAML with the ID for each of the returned rows.... maybe include some fields you can repurpose in you data connection to the list, like Created and Created By, and repurpose those for updating and submitting your CAML....&lt;/p&gt;&lt;p&gt;Like - you could execute the query that gets back the IDs, and then set Created in that data source to blank (which would change all instances of Created) and have a rule on Created that if it is blank, go set the ID and status in the CAML batch and submit it....&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/103353.aspx</link><pubDate>Wed, 22 Jul 2015 18:16:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103353</guid><dc:creator>jpl18lal22</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103353.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=103353</wfw:commentRss><description>&lt;p&gt;Hilary, sorry about the misunderstanding with the URL!&amp;nbsp; And yes, I&amp;#39;m using Infopath 2013 thank goodness!&lt;/p&gt;&lt;p&gt;I created the data connection, but I&amp;#39;m not sure what you mean for Step 4? And then once I have the IDs in that data connection, I&amp;#39;m not sure how I would pass them to the webservice connection?&lt;/p&gt;</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/103351.aspx</link><pubDate>Wed, 22 Jul 2015 18:03:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103351</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=103351</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Okay. You had said the column was a URL. :) I thought you meant the column type was a hyperlink.&lt;/p&gt;&lt;p&gt;You should be able to:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Add a&amp;nbsp;data connection to the list you are submitting&amp;nbsp;data to&lt;/li&gt;&lt;li&gt;Include the&amp;nbsp;URL column and the ID column in the data connection&lt;/li&gt;&lt;li&gt;Don&amp;#39;t query for data on load&lt;/li&gt;&lt;li&gt;In the form, set the query URL&amp;nbsp;field in the new data connection to the&amp;nbsp;form URL&lt;/li&gt;&lt;li&gt;Query&amp;nbsp;the data connection&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;This should return just the rows where the URL matches and that should allow you to get the IDs. Does that make sense? You are using InfoPath 2010 or&amp;nbsp;2013, I hope - list data connection query fields don&amp;#39;t exist in 2007....&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/103349.aspx</link><pubDate>Wed, 22 Jul 2015 17:55:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103349</guid><dc:creator>jpl18lal22</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103349.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=103349</wfw:commentRss><description>&lt;p&gt;Hmm, regarding your identifier column, I thought that was what I was doing by having the URL field. It is of field type &amp;quot;Single Line of Text&amp;quot;.&amp;nbsp;&amp;nbsp;&amp;nbsp;I guess I could simply it to just the form name? Or maybe I&amp;#39;m jsut not understanding what your suggestion.&lt;/p&gt;&lt;p&gt;Again, thank you in advance for your assistance! &lt;/p&gt;</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/103348.aspx</link><pubDate>Wed, 22 Jul 2015 17:44:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103348</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103348.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=103348</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The reason I posted a link to a code sample is that it has a nice sample CAML batch in the code - simply meant to show you the correct CAML syntax. If you include the proper method and the &amp;lt;Field Name=&amp;quot;ID&amp;quot;&amp;gt;YOURIDNUMBERHERE&amp;lt;/Field&amp;gt; in your CAML batch, and submit that CAML to the UpdateListItems web service (along with whatever data you want to update), the submit should update your list items. You&amp;#39;ll see the correct syntax for a CAML delete also in that code sample: &amp;lt;Method ID=&amp;#39;1&amp;#39; Cmd=&amp;#39;Delete&amp;#39;&amp;gt;&amp;lt;Field Name=&amp;#39;ID&amp;#39;&amp;gt;5&amp;lt;/Field&amp;gt;&amp;lt;/Method&amp;gt;.&lt;/p&gt;&lt;p&gt;Oh, sorry,&amp;nbsp;I think I get&amp;nbsp;what you are saying now. &amp;nbsp;You don&amp;#39;t have the IDs for the items.... We can&amp;#39;t query on a URL from a regular list data connection either, or I&amp;#39;d suggest adding a connection to a list, and querying for just the items that match the URL. Have you thought about adding another column you could use as an identifier that you could query on? Just call it &amp;quot;form ID&amp;quot; or something and make it a single line of text, have a field in your form that you set to a unique value (username + now() or some thing) the first time it is opened, and then when you need to get the IDs back for your items, you&amp;#39;d have a key you could use? &lt;/p&gt;</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/103347.aspx</link><pubDate>Wed, 22 Jul 2015 17:30:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103347</guid><dc:creator>jpl18lal22</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103347.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=103347</wfw:commentRss><description>&lt;p&gt;Hilary, Yes I am using CAML and the UpdateListItems web service.&amp;nbsp; I meant I can&amp;#39;t use anything that would require Visual Studio since I don&amp;#39;t have access to that.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Funny you should provide that link! The list that I&amp;#39;m updated is created using the link that you sent.&amp;nbsp; So I have the Form library with the form with a repeating table of individual travelers, and then they get sent to another list by individual. And I&amp;#39;m trying to have it update the corresponding fields when they do a cancel in the Form.&amp;nbsp;But right now the only thing connecting the two in my list&amp;nbsp;is that URL that ties it back to the travel form.&lt;/p&gt;</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/103346.aspx</link><pubDate>Wed, 22 Jul 2015 17:19:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103346</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103346.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=103346</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The only way to update is by using the SharePoint List Item ID. I figured based on the title of your post you were already using CAML and the UpdateListItems web service? There are lots of posts on here about doing this. This thread is a pretty good one: &lt;a href="http://www.infopathdev.com/forums/t/26246.aspx?PageIndex=1"&gt;http://www.infopathdev.com/forums/t/26246.aspx?PageIndex=1&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/103345.aspx</link><pubDate>Wed, 22 Jul 2015 17:12:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103345</guid><dc:creator>jpl18lal22</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103345.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=103345</wfw:commentRss><description>&lt;p&gt;So the only way to update it is by the SharePoint List Item ID? Is it possible then for example,&amp;nbsp;to update the status field of all 3 items below to be cancelled? Keep in mind I cannot use code.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp; Status&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; URL&lt;/p&gt;&lt;p&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bob&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Active&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; www.url.com/travel1&lt;/p&gt;&lt;p&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; John&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Active     &amp;nbsp;&amp;nbsp; www.url.com/travel1&lt;/p&gt;&lt;p&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sara&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Active     &amp;nbsp;&amp;nbsp;&amp;nbsp; www.url.com/travel1&lt;/p&gt;&lt;p&gt;TIA&lt;/p&gt;</description></item><item><title>Re: Using CAML to update a sharepoint list... oh, my, god...</title><link>https://www.infopathdev.com:443/forums/thread/103343.aspx</link><pubDate>Wed, 22 Jul 2015 16:29:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103343</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103343.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=103343</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;For updates, your CAML needs to include the SharePoint List Item ID for the item. So, if you add the ID column to your view in SharePoint, you can see that.... if you have a data connection to your list in InfoPath you can include this ID column as well. &lt;/p&gt;&lt;p&gt;&amp;lt;Field Name=&amp;quot;ID&amp;quot;&amp;gt;2&amp;lt;/Field&amp;gt;&lt;/p&gt;&lt;p&gt;The sample code found here shows nice&amp;nbsp;CAML batch for updates: &lt;a href="https://msdn.microsoft.com/en-us/library/office/ms440289(v=office.14).aspx"&gt;https://msdn.microsoft.com/en-us/library/office/ms440289(v=office.14).aspx&lt;/a&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>