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
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
|||
|
|
|
You can use
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. |
|||
|
|
|
You need to use SP.ListItem.file A sample code is mentioned here |
|||
|
|
