1

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.

2 Answers 2

1

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.

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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