Search code examples
sharepointlifecyclesplistitem

SPListItem life cycle


I'd like to have some help on list item life cycle. Any links where I can read about this?

And main thing I need to know is that in event receiver there are methods as :

  1. ItemAdding
  2. ItemAdded
  3. ItemUpdating
  4. ItemUpdated

Where workflows starts? How to stop updating process and just update some fields with systemupdate and don't fire any error? What i need is to update some field with no new version and with no workflows start.


Solution

  • You should be able to use (in your eventreceiver):

    base.EventFiringEnabled = false;
    //Do some changes to the list item
    item.SystemUpdate();
    base.EventFiringEnabled = true;
    

    This thread also discusses this http://social.msdn.microsoft.com/forums/en-US/sharepointdevelopment/thread/46e0a519-c580-46e3-92b7-c40765ed0e52