Results 1 to 2 of 2

Thread: Update vs. SystemUpdate for SharePoint List Item

  1. #1
    Join Date
    Jun 2010
    Posts
    7

    Update vs. SystemUpdate for SharePoint List Item

    What is the general approach we follow when we try to add / edit a SPListItem using the SharePoint object model? Yes I know it! Almost everybody will have a common answer to this (which is something similar to what is provided below).

    SPListItem item = SPList.Items.Add();

    item["Column1"] = "value for column 1";

    item["Column2"] = "value for column 2";

    item.Update();

    The last line in the code above "item.Update()" does the final task of updating all the assigned value for that specific item within the SPList.

    But is this the only way to update an item? No, we can also update the same item using

    item.SystemUpdate();

    Hope you find this tips useful. Learn about SharePoint Development.

    Thanks,
    Bijayani
    Last edited by Maqbool; 22-06-2010 at 05:31 PM. Reason: External Links Not Allowed, Removed The Same.

  2. #2
    Join Date
    Dec 2007
    Posts
    2,291

    Re: Update vs. SystemUpdate for SharePoint List Item

    There are many online guides to derive the meaning of SharePoint Development. There are also many tools for developers called SharePoint Developer Tools in Visual Studio 2010. One can also download a wide range of Visual Studio trials, samples, tools, code and other resources from Microsoft and from the Visual Studio Community. Learn more here - http://msdn.microsoft.com/en-us/vstudio/bb984878.aspx

Similar Threads

  1. Sharepoint Tips for adding items in List
    By Leoniee in forum Tips & Tweaks
    Replies: 2
    Last Post: 01-02-2011, 07:54 AM
  2. Adding an Attachment to a List Item Programmatically in SharePoint
    By bijayani in forum Software Development
    Replies: 2
    Last Post: 30-06-2010, 12:06 PM
  3. Remove/Add an item from remembered list in Messenger login
    By O'Brian in forum Customize Desktop
    Replies: 4
    Last Post: 23-06-2010, 05:57 PM
  4. Sharepoint list calculated field unique ID number
    By NetWorm in forum Software Development
    Replies: 3
    Last Post: 10-06-2009, 08:02 PM
  5. Replies: 6
    Last Post: 28-08-2008, 03:37 AM

Tags for this Thread

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
  •  
Page generated in 1,714,135,805.79575 seconds with 17 queries