<?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: Programmatically add an item to a SharePoint list fails</title><link>https://www.infopathdev.com:443/forums/thread/56102.aspx</link><pubDate>Tue, 22 Jun 2010 13:21:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56102</guid><dc:creator>elizas</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56102.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=56102</wfw:commentRss><description>Hi,
   Plz check the answer given below.

We can use SharePoint API to create these fields and associate the corresponding attributes programmatically within an existing List. Provided below is a code snippet in C#.Net describing the same.
using (SPSite oSPsite = new SPSite(&amp;quot;http://Web-URL&amp;quot;))
{
    oSPsite.AllowUnsafeUpdates = true;
 
    using (SPWeb oSPWeb = oSPsite.OpenWeb())
    {
        oSPWeb.AllowUnsafeUpdates = true;
 
        /* get the SPList object by list name*/
        SPList lst = oSPWeb.Lists[&amp;quot;EmpList&amp;quot;];
 
        /* create a Numeric field for EmpID */
        SPFieldNumber fldEmpID = (SPFieldNumber)lst.Fields.CreateNewField(
                        SPFieldType.Number.ToString(),

Sharepoint migration India
http://www.mindfiresolutions.com/Sharepoint-Support.htm</description></item><item><title>Re: Programmatically add an item to a SharePoint list fails</title><link>https://www.infopathdev.com:443/forums/thread/51499.aspx</link><pubDate>Mon, 08 Feb 2010 12:08:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51499</guid><dc:creator>elizas</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51499.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=51499</wfw:commentRss><description>You can think of a SharePoint List somewhat similar to a table present within a Database. As tables consist of different columns, a SharePoint List also comprises of different columns / fields and these fields can indeed have different attributes associated to it (like &amp;quot;Required field check&amp;quot;, &amp;quot;Max Length&amp;quot;, &amp;quot;Display Formats&amp;quot;, etc).
We can use SharePoint API to create these fields and associate the corresponding attributes programmatically within an existing List.</description></item><item><title>Re: Programmatically add an item to a SharePoint list fails</title><link>https://www.infopathdev.com:443/forums/thread/43011.aspx</link><pubDate>Tue, 16 Jun 2009 12:21:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43011</guid><dc:creator>Gagan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43011.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=43011</wfw:commentRss><description>&lt;p&gt;So theoretically i can now change my sharepoint collum names from the unreadable (ex:Currentshift) to readable (ex: Current Shift) and my form should submit without any problems, without any changes?&lt;/p&gt;</description></item><item><title>Re: Programmatically add an item to a SharePoint list fails</title><link>https://www.infopathdev.com:443/forums/thread/42966.aspx</link><pubDate>Mon, 15 Jun 2009 20:40:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42966</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42966.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=42966</wfw:commentRss><description>&lt;p&gt;I recently (...erm, this very morning....) had a similar issue. &lt;a href="http://www.u2u.be/res/Tools/CamlQueryBuilder.aspx"&gt;This&lt;/a&gt; CAML Query Builder can help.... It is free, and when you chose to use UpdateListItems instead of a Query, you can see the exact syntax that is needed to add an item -- that includes any field name oddities.&lt;/p&gt;
&lt;p&gt;I believe that ShP gives the column a name when you first create it, and that name is kept for the life of the column. If you change the name in the list settings, all you are changing is the display, not the true value....&lt;/p&gt;</description></item><item><title>Re: Programmatically add an item to a SharePoint list fails</title><link>https://www.infopathdev.com:443/forums/thread/42964.aspx</link><pubDate>Mon, 15 Jun 2009 20:28:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42964</guid><dc:creator>symwongaton</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42964.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=42964</wfw:commentRss><description>Glad to hear you got it sorted. Yes, column names can be a pain to change in SharePoint once they&amp;#39;ve been created; and what you see on the front-end is not what SharePoint has stored on the back-end.  So you have to keep them simple and get them right from the start. Good job, though, on figuring out what the problem was!</description></item><item><title>Re: Programmatically add an item to a SharePoint list fails</title><link>https://www.infopathdev.com:443/forums/thread/42958.aspx</link><pubDate>Mon, 15 Jun 2009 17:09:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42958</guid><dc:creator>Gagan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42958.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=42958</wfw:commentRss><description>&lt;p&gt;I have figured it out, the problem is that infopath/sharepoint is very anal.&lt;/p&gt;
&lt;p&gt;When i added an extra field to the working one, the problem was that it was called &amp;quot;Current Shift&amp;quot; with the space, and the space in the sharepoint list was the problem,&amp;nbsp;(CurrentShift wouldnt work either)&amp;nbsp;so i changed it in sharepoint, and in my code. even though i changed it to a working title, it still did not work, so i assume that even after changing the title, it doesnt work and you really need to create a whole new collum. so back to my original form, i changed all my titles to follow a standard of Only the leading char being Capitol, and no spaces, and it worked. plus i created a whole new sharepoint list from scratch.&lt;/p&gt;</description></item><item><title>Re: Programmatically add an item to a SharePoint list fails</title><link>https://www.infopathdev.com:443/forums/thread/42940.aspx</link><pubDate>Mon, 15 Jun 2009 13:20:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42940</guid><dc:creator>Gagan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42940.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=42940</wfw:commentRss><description>&lt;p&gt;SYM,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;your plain version works great, i just tested. it seems like there is an error with the webservicesubmit in my modified version. i added a repeating table for my CAML, and the CAML does get populated with my custom info, so im assuming everything works great until then. I even created a whole new custom list in sharepoint and updated all connections plus a new GUID, but still no luck. i&amp;#39;ll keep troubleshooting, and post if i have any results, in the meantime any info would help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;EDIT: ok so i may have found something. I took my perfectly working example and added just one field. i updated the CAML, removed the previous CAML resource file, added the new one, created new code in VSTA for my new field, created a new&amp;nbsp;collum in sharepoint&amp;nbsp;and upon hitting submit, it now does nothing, doesnt even update what it use to. i tried both .innerxml and .value in the code.&lt;/p&gt;</description></item><item><title>Re: Programmatically add an item to a SharePoint list fails</title><link>https://www.infopathdev.com:443/forums/thread/42837.aspx</link><pubDate>Fri, 12 Jun 2009 08:09:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42837</guid><dc:creator>symwongaton</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42837.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=42837</wfw:commentRss><description>No worries. I&amp;#39;m doing OK, thanks. I&amp;#39;ve not seen Office 2010, yet. You? :)</description></item><item><title>Re: Programmatically add an item to a SharePoint list fails</title><link>https://www.infopathdev.com:443/forums/thread/42830.aspx</link><pubDate>Fri, 12 Jun 2009 07:19:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42830</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42830.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=42830</wfw:commentRss><description>&lt;p&gt;Thanks S.Y.M. for the reply here. Hope you are doing well! How do you like Office 2010? :)&lt;/p&gt;</description></item><item><title>Re: Programmatically add an item to a SharePoint list fails</title><link>https://www.infopathdev.com:443/forums/thread/42827.aspx</link><pubDate>Fri, 12 Jun 2009 06:10:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42827</guid><dc:creator>symwongaton</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42827.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=42827</wfw:commentRss><description>Hi,

All code on BizSupportOnline.NET is tested before it goes online. While I don&amp;#39;t guarantee that it will work nor give support for any code I publish, I do ensure that I go through all of the steps of each article before publishing them. Have you followed the exact steps as described in the article and tested the solution before making modifications? If not, I&amp;#39;d suggest doing that first to get a &amp;quot;plain vanilla&amp;quot; solution working before making your own modifications. If the solution does not work as described in the article, let me know; I&amp;#39;ll then retest it.


The issue you&amp;#39;re having could be related to virtually anything. Did you rename a SharePoint list column after creating it? Are all of your field names correct? Also check the contents of your CAML batch before submitting it to the web service. You can also look whether anything has been logged in the SharePoint logs. And finally, you can search InfoPathDev on &amp;quot;CAML&amp;quot;, because many people have had an issue similar to yours before.


CAML is difficult to debug, which is why I generally don&amp;#39;t recommend it as a way of submitting InfoPath data to a SharePoint list. There are &lt;a href="http://www.bizsupportonline.net/blog/2008/12/5-ways-to-submit-an-infopath-form-to-a-sharepoint-list/"&gt;other solutions available for submitting InfoPath data to a SharePoint list&lt;/a&gt; and which are much easier to debug. You may want to look into those.


Hope this helps.</description></item><item><title>Re: Programmatically add an item to a SharePoint list fails</title><link>https://www.infopathdev.com:443/forums/thread/42800.aspx</link><pubDate>Thu, 11 Jun 2009 20:54:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42800</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42800.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=42800</wfw:commentRss><description>&lt;p&gt;Hi Goober,&lt;/p&gt;
&lt;p&gt;Why not ask the people on the site that posted the tutorial? We don&amp;#39;t debug other people&amp;#39;s stuff. &lt;/p&gt;
&lt;p&gt;By the way, the MVP that posted that article does post here. You can search for her name and maybe email her separately.&lt;/p&gt;</description></item><item><title>Programmatically add an item to a SharePoint list fails</title><link>https://www.infopathdev.com:443/forums/thread/42764.aspx</link><pubDate>Thu, 11 Jun 2009 14:12:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42764</guid><dc:creator>Gagan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42764.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=42764</wfw:commentRss><description>&lt;p&gt;Hello all,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a class="" href="http://www.bizsupportonline.net/infopath2007/programmatically-add-rich-text-item-sharepoint-list-infopath.htm"&gt;I have followed this tutorial, with slight modifications to fit my needs&lt;/a&gt;&amp;nbsp;but it seems like when i hit submit, nothing shows up in my sharepoint list. no errors or anything.&lt;/p&gt;
&lt;p&gt;my code seems alright, my GUID is correct, im not sure what to check from here. any ideas?&lt;/p&gt;</description></item></channel></rss>