How can I get following information about a SharePoint document.
* Created By
* Last modified by
I need to find this meta data information using SharePoint object model.
|
How can I get following information about a SharePoint document.
I need to find this meta data information using SharePoint object model. |
|||
|
|
|
You can get the value by first of all getting the reference of the SPItem of an existing item in the SharePoint library and then doing item["CreatedBy"].Tostring() to get field value . Note: This Created By will provide you to the SharePoint formated name of the user who uploaded the file on SharePoint and not the one who created it using MS Office. |
|||
|
|
|
The SPBuiltInFieldID class contains ids for most of the built in fields. In your case I believe Author and Editor are the 2 fields you need. |
|||
|
|