in

InfoPath Dev

WebService UpdateListItems doesn't work

Last post 08-05-2008 08:19 AM by Canus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-17-2008 08:33 AM

    WebService UpdateListItems doesn't work

     Hi, im trying use the WebService method UpdateListItems. But  it  doesn't work.

    I have some custom fields in my LIST, and this fields i cant insert, just the nom custom fields...

    A exemple of my code:

     

               IDMethod++;

                businessXml.AppendFormat("<Method ID='{0}' Cmd='New'>", IDMetod);
                businessXml.Append("<Field Name='ID'>New</Field>");
                businessXml.Append("<Field Name='people_x0020_name0'>11111</Field>");
                businessXml.Append("<Field Name='habilit' Type='Text'>1</Field>");
                businessXml.Append("<Field Name='Title'>asfdsadf</Field>");
                businessXml.Append("<Field Name='Life_x0020_Of_x0020_Cicle'>asdfasdf</Field>");
                businessXml.Append("<Field Name='Begin'>2005-05-05</Field>");
                businessXml.Append("<Field Name='End'>2005-05-05</Field>");
                businessXml.Append("</Method>");

     

    from the GetListItems webService i get that fields, for example:

     ows_Title

    ows_people_x0020_name0

    ows_Begin

     

    some body can help-me?

    please 

     

     

     

     

  • 08-05-2008 08:19 AM In reply to

    • Canus
    • Not Ranked
    • Joined on 08-05-2008
    • Posts 2

    Re: WebService UpdateListItems doesn't work

    My Problem always was that I used wrong fieldnames.

    Sharepoint has the unfair nature not to show the internally used fieldnames. (f.e. if you rename a custom field you only change the caption of the field not its database-name).
    What you see is not! what is used by Sharepoint.

    I use a CAML Viewer to find the orginal names (you can get a good tool here: http://www.codeplex.com/SPCamlViewer).

     Another good source of information is here: http://blogs.msdn.com/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx

     Hope this helps to get things working.

Page 1 of 1 (2 items)
Copyright © 2003-2007 Qdabra Software. All rights reserved.
View our Terms of Use.