1

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?

2 Answers 2

1

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.

4
  • 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, 2013 at 22:16
  • Yes, it will. I would recommend trying it since documentation only has value if it works :) Apr 2, 2013 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, 2013 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 Apr 2, 2013 at 22:36
1

I always use "Login Name" since that will always be unique for the user within the SharePoint farm. User ID Number proposed by Ryan is ID from hidden SiteUserInfoList and may differ between Site Collections. Also you cannot use Send Email workflow action using User ID Number.

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.