I have a document library. I want to add an itemadding
event recieiever to do some validation on the file name of the document. How can I get the file name from the SPItemEventProperties
3 Answers
You can use
Properties.AfterUrl
and then split it by "/" and get the second part of string to get document Name, it does work for item adding or item updating.