1

How can I get the current Editor of an list Item in SharePoint 2010 during ItemUpdating?

Problem is properties.AfterProperties["Editor"].ToString() throws and Exception cause it's null. This properties.ListItem["Editor"].ToString() is useless cause I get the Editor which made changes the last time.

Any guess how I can achieve this during the Updating?

1

You can use properties.UserLoginName to get the current use. Note if you running your code in RunWithElevatedPreveliges, you need to write above statement before that.

  • I used this in my case properties.UserDisplayName – Markus Schmitt Jan 16 '13 at 15:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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