Hot answers tagged

3

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: ...


2

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"]; ...


1

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