Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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