<?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: Updating One Field In SharePoint List</title><link>https://www.infopathdev.com:443/forums/thread/95809.aspx</link><pubDate>Wed, 12 Feb 2014 06:03:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95809</guid><dc:creator>RaYvA</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95809.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=95809</wfw:commentRss><description>&lt;p&gt;Hi Kathryn,&lt;/p&gt;
&lt;p&gt;Great question!&amp;nbsp; Looks like you are well on the way to getting this to work! :) Your nearly there.&amp;nbsp; What you missed from the first post was the way to create the update payload before you submit it to the web service, and Hilary&amp;#39;s post&amp;nbsp;does give you&amp;nbsp;most of the answer. &lt;/p&gt;
&lt;p&gt;If you&amp;nbsp;had read this post on MSDN &lt;a title="Submitting Data from InfoPath 2007 to a SharePoint List" href="http://msdn.microsoft.com/en-us/library/cc162745.aspx"&gt;Submitting Data from InfoPath 2007 to a SharePoint List&lt;/a&gt;&amp;nbsp;you would have gotten there.&lt;/p&gt;
&lt;p&gt;You need to populate the CAML payload prior to submitting it. You do this my adding a coule of &amp;#39;Set a fields value&amp;#39; rules prior to the web services submit..... but then you need to modify the XSF so that you populate the correct fields with whatever data you want.&amp;nbsp; I have attahced an updated form which I have done this.&amp;nbsp; The rules in the XSF would then look like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsf:rule caption=&amp;quot;submit&amp;quot; isEnabled=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsf:assignmentAction targetField=&amp;quot;xdXDocument:GetDOM(&amp;amp;quot;Update List Item Template&amp;amp;quot;)/Batch/Method/&lt;strong&gt;Field[@Name=&amp;#39;Pol_Num&amp;#39;]&lt;/strong&gt;&amp;quot; expression=&amp;quot;my:Pol_Num&amp;quot;&amp;gt;&amp;lt;/xsf:assignmentAction&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsf:assignmentAction targetField=&amp;quot;xdXDocument:GetDOM(&amp;amp;quot;Update List Item Template&amp;amp;quot;)/Batch/Method/&lt;strong&gt;Field[@Name=&amp;#39;Status&amp;#39;]&lt;/strong&gt;&amp;quot; expression=&amp;quot;my:Status&amp;quot;&amp;gt;&amp;lt;/xsf:assignmentAction&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsf:submitAction adapter=&amp;quot;Web Service Submit&amp;quot;&amp;gt;&amp;lt;/xsf:submitAction&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xsf:rule&amp;gt;&lt;/p&gt;
&lt;p&gt;As you can see the filter is quiet different to that in Hilary&amp;#39;s post.&lt;/p&gt;
&lt;p&gt;I have also noticed in your list schema&amp;#39;s that you have a Title field, which will also need to be populated in the same fashion, in order for the web services call to find the item that you want to updated (the key), you may also be able to pass in the ID of the item to do this (I think off the top of my head anyway).&lt;/p&gt;
&lt;p&gt;Hope this helps?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers&lt;/p&gt;</description></item><item><title>Updating One Field In SharePoint List</title><link>https://www.infopathdev.com:443/forums/thread/95490.aspx</link><pubDate>Tue, 28 Jan 2014 18:08:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95490</guid><dc:creator>kmanocchiolewis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95490.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=95490</wfw:commentRss><description>&lt;p&gt;Okay,&lt;/p&gt;&lt;p&gt;I am trying to build a form in&amp;nbsp;IP 2010&amp;nbsp;that, upon loading, shows one field (policy number) from the first record of a sharepoint list, organized by another field called&amp;nbsp;status.&amp;nbsp; This will then be used to populate information in the form, as it is a unique identifier.&amp;nbsp; I have been able to do this with form load rules and the position()=1 expression on my data connection the the SharePoint list.&amp;nbsp; But then, I want the form to (either on load automatically, or when the user clicks a button) to change the status associated with the Policy number that was shown&amp;nbsp;and Submit back to the SharePoint List. This will ensure that when another form is created, the next item in the list will appear, since that status changed it sorted down to the bottom of the list.&lt;/p&gt;&lt;p&gt;&lt;a href="http://blog-sharepoint.blogspot.com/2009/07/summary-how-to-programmatically-update.html#process-6"&gt;http://blog-sharepoint.blogspot.com/2009/07/summary-how-to-programmatically-update.html#process-6&lt;/a&gt;&amp;nbsp;- This post got me through setting up the CAML and web submit, but I was testing it, and editing the status in the repeating field then submiting does not give me an error, but does not update the list and when I query again to check it resets to the default.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.infopathdev.com/blogs/hilary/archive/2009/06/07/hack-manifest-xsf-to-filter-the-target-of-a-rule.aspx"&gt;http://www.infopathdev.com/blogs/hilary/archive/2009/06/07/hack-manifest-xsf-to-filter-the-target-of-a-rule.aspx&lt;/a&gt;&amp;nbsp;- In theory this does what I want to, instead of only updating ItemType of Labor, it would only update the item that corresponds to the policy number that was populated when the form opened.&amp;nbsp; Unfortunuatly, following the steps in this document does not seem to work for me, while manifest.xsf is saving the changes I made, it is not updating the Xpath in the action.&lt;/p&gt;&lt;p&gt;Unfortunately, I cannot use C#&amp;nbsp;coding as of right now due to corporate restrictions (though I am exploring that option), and for the same reason qrules is not an option - this may not even be possible with these restrictions. &lt;/p&gt;&lt;p&gt;I have attached what I am working off of, any help would be appreciated!&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Kathryn&lt;/p&gt;</description></item></channel></rss>