+ Reply to Thread
Results 1 to 2 of 2

Can't create new items in SharePoint list

  1. #1
    Registered User
    Join Date
    06-25-2013
    Location
    Jacksonville, FL
    MS-Off Ver
    Excel 2007
    Posts
    30

    Can't create new items in SharePoint list

    I have the following code in an Excel macro that I have gathered from other sources to use SOAP to update an existing SharePoint List. Everything runs fine and I have set it up to display a message box with the status and I get status 200 or "Ok". However the new list item never shows on the list. Any help with this?

    Please Login or Register  to view this content.
    Thanks in advance!

  2. #2
    Registered User
    Join Date
    06-25-2013
    Location
    Jacksonville, FL
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Can't create new items in SharePoint list

    I solved it. And here is what I learned...
    1. Check status of code: Declaring a new DOMDocument, i.e. XMLDOC, and then adding XMLDOC.LoadXML responseText at the end of the code is a lot more helpful in finding the status of the code and what is going wrong.
    2. Field Names: The column name displaying in the SharePoint List or even in the list settings is not necessarily the column name that SharePoint uses. The best way to find the actual column name used by SharePoint is to go the List's settings, click a column to edit and once the new screen loads, grab everything in the URL after "Field=". You will need to URL decode the string. i.e. The URL will be "https://...&Field=Column%5Fx0020%5FName" and you will need to place "Column_x0020_Name" that into the vba code - <Field Name='Column_x0020_Name'>
    3. List GUID: I changed the list GUID string in the above code from the actual name to the GUID of the list xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
    4. Method ID Tag: changed it to 1 instead of 3 listed above


    Working code:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 10-08-2013, 10:54 AM
  2. Create a list of items
    By cmb80 in forum Excel General
    Replies: 3
    Last Post: 09-18-2013, 06:37 AM
  3. Create a list of items based on another list
    By rickyg in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-10-2010, 09:57 AM
  4. Replies: 10
    Last Post: 03-19-2007, 11:30 PM
  5. [SOLVED] How do I create a list of items in a column?
    By stepaim in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-06-2006, 02:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1