various shenanigans.

InfoPath – Delete Item via UpdateListItems Web Service

I have been having problems sending a delete request via the lists.asmx web service in SharePoint.
My Delete XML packet looks like this:






Using the steps found here (http://jaliyaudagedara.blogspot.com/2011/03/submitting-data-to-sharepoint-2010-list.html) I setup a Delete List Item data connection.

When trying to delete an item from a list (not document library) I was seeing the following error in the
ULS logs:

The form definition (.xsf) file has an invalid mapping from the document to the submit web service

After a little digging it appears the web service call wants the list item ID to be an integer.
After exporting my template files, I edited the schema definition file (.XSD) for the Delete function.
At the bottom of this file you will find:

	
	
	
	
	
	

Simply change:

	

to

	

and my delete function works!

Close Bitnami banner
Bitnami