<?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: CAML not Deleting or Updating List Items</title><link>https://www.infopathdev.com:443/forums/thread/71112.aspx</link><pubDate>Fri, 14 Oct 2011 07:54:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71112</guid><dc:creator>Mingle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71112.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=71112</wfw:commentRss><description>&lt;p&gt;I got the same error when I want to delete a piece of list item.What&amp;#39;s your lastet status?&lt;/p&gt;
&lt;p&gt;Below link show how to create a list item.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/b/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx"&gt;http://blogs.msdn.com/b/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: CAML not Deleting or Updating List Items</title><link>https://www.infopathdev.com:443/forums/thread/55996.aspx</link><pubDate>Fri, 18 Jun 2010 07:08:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55996</guid><dc:creator>elizas</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55996.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=55996</wfw:commentRss><description>Provided below are code samples written in C# to format an input as per SharePoint DateTime field.
/* -- Format for Date Only Field -- */      
private static String ToSPDate(String strDt)
{
    if (strDt == String.Empty)
        return strDt;
    else
        return (Convert.ToDateTime(strDt)).ToString(&amp;quot;yyyy-MM-dd&amp;quot;);
}
 
/* -- Format for DateTime Field -- */
private static String ToSPDateTime(String strDt)
{
    if (strDt == String.Empty)
        return strDt;
    else
        return (Convert.ToDateTime(strDt)).ToString(&amp;quot;yyyy-MM-ddTHH:mm:ssZ&amp;quot;);
}
http://www.mindfiresolutions.com/Format-Input-for-SharePoint-DateTime-field-186.php</description></item><item><title>Re: CAML not Deleting or Updating List Items</title><link>https://www.infopathdev.com:443/forums/thread/45078.aspx</link><pubDate>Tue, 28 Jul 2009 10:28:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45078</guid><dc:creator>Daniels</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45078.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=45078</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;jmagdziasz:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I am trying to do the same and so far have set up a Data Connection to retrieve the ID for the list item I want, but am lost with the code?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;

&lt;p&gt;CAML data types must be in the correct format for all elements in the CAML query to execute.&amp;nbsp; If you are trying to set a Date/Time field with an invalid date format, the field will not be updated, and any elements after will also be ignored.&lt;/p&gt;

&lt;p&gt;I have found this to be a problem mainly when trying to update a Date/Time field (including the time component) in an existing SharePoint list item.&amp;nbsp; The only format that is supported in CAML is ISO 8601.&amp;nbsp; See &lt;a href="http://blog-sharepoint.blogspot.com/2009/07/infopath-caml-date-time-format-in-when.html"&gt;InfoPath - CAML Date Time format in when submitting to a SharePoint list via a Web Service&lt;/a&gt; for details on how to convert date values to ISO 8601 standard for use in CAML.&lt;/p&gt;
&lt;p&gt;For details and an example of how to update existing SharePoint list items using a CAML query to the Lists web service see &lt;a href="http://blog-sharepoint.blogspot.com/2009/07/summary-how-to-programmatically-update.html"&gt;InfoPath - Update Existing SharePoint List Item Programmatically Using CAML&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;jswatter:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Is it the GUID or is it the Calendar name itself?&lt;/div&gt;&lt;/BLOCKQUOTE&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;JSwatter, the ListName value should be the unencoded GUID
(including hiphens, but not curly braces eg. &amp;quot;XXXXXXXX-XXXX-XXXX-XXXXXXXXXXXX&amp;quot; ) of the
required list.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: CAML not Deleting or Updating List Items</title><link>https://www.infopathdev.com:443/forums/thread/41530.aspx</link><pubDate>Mon, 11 May 2009 12:13:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41530</guid><dc:creator>jmagdziasz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41530.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=41530</wfw:commentRss><description>&lt;p&gt;Did you ever find the code to do this?&amp;nbsp; I am trying to do the same and so far have set up a Data Connection to retrieve the ID for the list item I want, but am lost with the code?&lt;/p&gt;</description></item><item><title>Re: CAML not Deleting or Updating List Items</title><link>https://www.infopathdev.com:443/forums/thread/36958.aspx</link><pubDate>Mon, 12 Jan 2009 19:57:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36958</guid><dc:creator>andyoye</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36958.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=36958</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Can you post the code to retrive the &amp;quot; existing Item&amp;#39;s Row ID&amp;quot;? &lt;/p&gt;&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: CAML not Deleting or Updating List Items</title><link>https://www.infopathdev.com:443/forums/thread/35305.aspx</link><pubDate>Thu, 04 Dec 2008 15:01:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35305</guid><dc:creator>JSwatter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35305.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=35305</wfw:commentRss><description>&lt;p&gt;Madhuri,&lt;/p&gt;
&lt;p&gt;Thanks for the information. Please forgive my beginner questions, but the link that can be constructed (on the top of the page under &amp;quot;Delete Items Based On User Input&amp;quot;) - will it delete the item based on the ID input?&lt;/p&gt;
&lt;p&gt;If so, how would I go about obtaining the ListName? Is it the GUID or is it the Calendar name itself? I have tried using the GUID, both with normally and with the &amp;quot;%&amp;quot; portions for the brackets and dashes. Is there something I&amp;#39;m missing?&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;</description></item><item><title>Re: CAML not Deleting or Updating List Items</title><link>https://www.infopathdev.com:443/forums/thread/35297.aspx</link><pubDate>Thu, 04 Dec 2008 13:19:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35297</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35297.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=35297</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Look at the following links, it might be helpful to you.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/ja-jp/library/ms946723.aspx"&gt;http://msdn.microsoft.com/ja-jp/library/ms946723.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/ja-jp/library/ms946723.aspx"&gt;http://msdn.microsoft.com/ja-jp/library/ms946723.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/ja-jp/library/ms946725.aspx"&gt;http://msdn.microsoft.com/ja-jp/library/ms946725.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;</description></item><item><title>CAML not Deleting or Updating List Items</title><link>https://www.infopathdev.com:443/forums/thread/35150.aspx</link><pubDate>Tue, 02 Dec 2008 15:03:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35150</guid><dc:creator>JSwatter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35150.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=35150</wfw:commentRss><description>&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;I have a form which I would like to have&amp;nbsp;create Calendar events if the events do not already exist in the Calendar List, and if they do already exist, update the existing items. I have, therefore two separate CAMLs - one for creating a new Item and the other for updating an existing one. I have tried both &amp;quot;cmd=&amp;#39;Update&amp;#39;&amp;quot; and &amp;quot;cmd=&amp;#39;Delete&amp;#39;&amp;quot;, but both seem to produce the same result: it never deletes or overwrites the existing List Item - it simply creates a new one.&lt;/p&gt;
&lt;p&gt;Below are&amp;nbsp;is the Update&amp;nbsp;CAML and the code&amp;nbsp;I am using. Please note that in my code I am successfully finding the existing Item&amp;#39;s Row ID and passing it to the batch - it just simply wont use it or update with it.&lt;/p&gt;
&lt;p&gt;Please someone help me - as I am desperate to fix this issue. I am using InfoPath 2003 and SharePoint 2003.&lt;/p&gt;
&lt;p&gt;&lt;u&gt;Update CAML:&lt;/u&gt;&lt;br /&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;lt;Method ID=&amp;quot;1&amp;quot; Cmd=&amp;quot;Update&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Field Name=&amp;quot;ID&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Field Name=&amp;quot;Title&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Field Name=&amp;quot;Description&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Field Name=&amp;quot;EventDate&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Field Name=&amp;quot;EndDate&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Field Name=&amp;quot;ProjectManager&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Field Name=&amp;quot;ProjectSponsor&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Field Name=&amp;quot;DIPhase&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Field Name=&amp;quot;ProjectName&amp;quot; /&amp;gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;lt;/Method&amp;gt;&lt;br /&gt;&amp;lt;/Batch&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Code:&lt;br /&gt;&lt;/u&gt;Dim DI1updatebatch &lt;br /&gt;Set DI1updatebatch = XDocument.DataObjects(&amp;quot;UpdateCAML&amp;quot;).DOM &lt;br /&gt;DI1updatebatch.selectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;ID&amp;#39;]&amp;quot;).nodeTypedValue = DI1rowtodelete &lt;br /&gt;DI1updatebatch.selectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Title&amp;#39;]&amp;quot;).text = DI1FieldTitle &lt;br /&gt;DI1updatebatch.selectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Description&amp;#39;]&amp;quot;).text = Description &lt;br /&gt;DI1updatebatch.selectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;EventDate&amp;#39;]&amp;quot;).text = DI1EventDate &lt;br /&gt;DI1updatebatch.selectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;EndDate&amp;#39;]&amp;quot;).text = DI1EndDate &lt;br /&gt;DI1updatebatch.selectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;ProjectManager&amp;#39;]&amp;quot;).text = ProjectManager &lt;br /&gt;DI1updatebatch.selectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;ProjectSponsor&amp;#39;]&amp;quot;).text = ProjectSponsor &lt;br /&gt;DI1updatebatch.selectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;DIPhase&amp;#39;]&amp;quot;).text = &amp;quot;1&amp;quot; &lt;br /&gt;DI1updatebatch.selectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;ProjectName&amp;#39;]&amp;quot;).text = ProjectName &lt;br /&gt;XDocument.DataAdapters(&amp;quot;CalendarUpdate&amp;quot;).Submit &lt;br /&gt;Set DI1updatebatch = Nothing&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>