0

I have a folder that I have called "External Projects". The intent is that a number of external project sub-folders will be added (and within those sub-folders, probably more layers of additional sub-sub-sub folders). My question is this... Can I create alerts at folder level to only alert when new sub-folders are created just one level in? I don't care if "sub-sub-folders" or "sub-sub-sub-sub-sub-folders" are created... I just want to know if new external project folders (one layer into the "External Projects" folder) could generate alerts. Is this possible? Thank you!

1 Answer 1

1

You can do this by using Event receivers. Whenever a folder is created you have to check the level and send alert.

public override void ItemAdded(SPItemEventProperties properties)
{

//Once the item is added you have to check whether its folder or not 
//if folder you have to check the level

}

Or you can try this approach which is using IAlertNotifyHandler

http://www.c-sharpcorner.com/UploadFile/17ffc7/capturing-and-modifying-sharepoint-alerts-through-alert-hand/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.