SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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

Your Answer


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.