How to add, update, and delete SharePoint list items via InfoPath

by S.Y.M. Wong-A-Ton

Learn how to write code in InfoPath that makes calls into the SharePoint object model to insert, edit, and delete items in a SharePoint list.

In 5 Ways to submit an InfoPath form to a SharePoint list I gave you five methods to add an item to a SharePoint list via an InfoPath form. A few of these articles used the SharePoint object model to create a new item in a SharePoint list.

You can take this a step further and create InfoPath solutions that use the SharePoint object model to update and delete items from a SharePoint list. For this purpose I wrote the following two articles: 

  1. How to update a SharePoint list via an InfoPath browser form using the SharePoint Object Model
  2. How to delete SharePoint list items via an InfoPath browser form using the SharePoint Object Model

If you are looking for an InfoPath solution that uses CAML and the SharePoint Lists.asmx web service to add, update, or delete items in a SharePoint list, see Submitting Data from InfoPath 2007 to a SharePoint List on MSDN.

 Subscribe (RSS | Email)

Related Posts

Comments to this post were closed 30 days after it was published.

Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent of S.Y.M. Wong-A-Ton. Usage of techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author, S.Y.M. Wong-A-Ton.

Working with InfoPath