Creating a SpFieldUser Field in Sharepoint
I was trying to use the list.Fields.Add method to add a SpFieldUser field but i didn't found information on how to do it.
But the below boxed info helped me to create it in another way.
How to add a User Information lookup field with codeOne of our developers asked me a question about adding a lookup field to the "User information" list with code. The "Add" method of SPFieldCollection wants a Guid for the destination list, but the "User information" list is not a SharePoint list. The solution is to use the "AddFieldAsXML" and submit a field XML instead. |
0 Comments:
Post a Comment
<< Home