Hot answers tagged


Which event is your Event Receiver trigging on? Because the -ed receivers are asynchronous by default (which could explain the behavior you're seeing). So, either use ItemUpdating event for your receiver, or explicitly mark your ItemUpdated receiver as synchronous (in the XML or code based on how you are adding the receiver) For XML: ...


SOLVED: After lengthy research I was able to come up with a working solution. // Break Inheritance from Parent library newFolder.Item.BreakRoleInheritance(true); // Remove 'Visitor' group from permissions SPPrincipal principal = (SPPrincipal)webDst.SiteGroups["Visitor"]; ...


You cannot get the item value in ItemAdding event. You can refer this BeforeProperties/AfterProperties in Event Receivers. You can get the Value in ItemAdded event. Let me know your thoughts. Thanks

Only top voted, non community-wiki answers of a minimum length are eligible