This project has moved. For the latest updates, please go here.

UpdateListItems: Add List Item?

Aug 10, 2010 at 2:04 PM
Hello, I'm an SPServices newbie with a question; I can't seem to figure out the syntax for using your UpdateListItems function to simply ADD an item to a SharePoint list. Can anyone please post an example? thanks Dave
Aug 10, 2010 at 2:55 PM
Edited Aug 10, 2010 at 2:56 PM

It is right at the bottom of the page here:

Cmd="New" is key there

Aug 10, 2010 at 4:55 PM
That shows how to add a folder, but not a list item...
Aug 10, 2010 at 9:03 PM

I was hunting for the same thing myself today.  I haven't tested this, but the following appears to be an example:

Aug 11, 2010 at 3:30 AM


The best source documentation is always the MSDN-based SDK. Here are the details for UpdateListItems.  I have links to each of the appropriate MSDN pages with each operation in my documentation.

While the link that ACrush gave you shows how to create a folder, the syntax is the same. You just supply different column (field) names.


Aug 11, 2010 at 12:08 PM
Thanks Marc & everyone else for your replies, I'll take a look. Much appreciated. Dave