1

I am going to create a webpart located in user profile page. That webpart should get the user ID of user's profile. For example, I login as user A and access to profile of user B, the webpart located on user B profile should get user ID of user B.

Please help me for the coding.

1 Answer 1

0

A relativley simple solutions would be:

creating a workflow using the "extract substring from index of string" action and add a lookup to the action. Use the following parameters: Data Source: Current Item Created By: Created By Return Field as: Display Name

Im not sure if this is what you are looking for, I hope it helps.

1
  • Seems like a very strange way for getting a user name in a webpart? Commented Aug 15, 2014 at 15:34

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.