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

In SP Designer, when using the "Set Field in Current Item" action, if the field you are setting is a Person type, there are several choices to "return" the data as. For example, if setting your Person field to the current item's Modified By or Created By, these are also Person fields but can be returned as one of the following:

  • As String
  • Display Name
  • Email Address
  • Login Name
  • User ID Number

Is there any gotcha in choosing one of these to set a Person field as? Is there any choice that won't set the person correctly and resolve it to a SharePoint person type?

share|improve this question
add comment

1 Answer

I always use the User ID Number since that will always be unique for the user. Depending on the set up and management of users the Display Name, Email Address and String may not be unique.

share|improve this answer
    
Thanks. Does this mean that the ID number will indeed resolve to a person type in the Person field? Do you have any supporting documentation on this and if that is the best practice? –  Alex Apr 2 '13 at 22:16
    
Yes, it will. I would recommend trying it since documentation only has value if it works :) –  Ryan Erickson Apr 2 '13 at 22:22
    
Sure, I will try it out. It's just a little hard to test this because you would need to prove every use case is true, i.e. for every user. –  Alex Apr 2 '13 at 22:29
    
I couldn't find much for documentation but this blog shows how you can view the list: zimmergren.net/technical/… and the User ID is the ID of that list –  Ryan Erickson Apr 2 '13 at 22:36
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.