Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
26 views

Remove user from SPFieldUserValueCollection

I have a "person or group" type column in my calendar list as "Participants". I need to add and remove users from this column. Adding users works fine. When trying to remove a user it does not get ...
1
vote
1answer
402 views

How to get username through REST

I am currently working with a task where you have a SPList in one farm that holds some data that we need to aggregate into a view on another farm. Therefore I am working on a Visual Web Part that ...
0
votes
3answers
2k views

Unable to cast object of type 'System.String' to type 'Microsoft.SharePoint.SPFieldUserValue'

I want to get the user value from the Person or Group column in code behind. My code is: List<string> manager = GeneralMethods.GetUsers((SPFieldUserValueCollection)item[FieldNames.Manager]); ...
0
votes
3answers
453 views

Change the value of Author field

I am copying over items from one list to another list. After copying the "Author" field gets populated with "System Account" and so I wish to update some fields in the destination list as follows. I ...
0
votes
2answers
220 views

Can find user in peopleeditor but not in web?

I want to assign the value from a peopleeditor control to a user field in C#. I have a resolved entity in the people editor, but when passing the SPUserId into the SPFieldUserValue constructor along ...
0
votes
1answer
292 views

Custom Field PropertySchema Type=User

I have a custom field in my SP Project. In my .xml file, I have a propertySchema and a user field inside it. Currently the field does not accept multiple users/groups. How can I change that? I ...
2
votes
1answer
3k views

How to read an User field value for a list item

I've got a content type that contains a filed of the type user. When I want to read the ListItem I just get a string containing the users name instead of a object which contains Name, Username, E-Mail ...
0
votes
1answer
723 views

Binding User to SPGridview

I have an SPGridview and I made a CAML Query to get the modifier of a document. When I bind it to the SPGridview with a SPBoundfield the value is displayed like this: 1;#HANSEVIS13\sschindler ...
9
votes
2answers
11k views

How do I convert SPUser to SPFieldUser?

I have a field in a list that accepts an SPFieldUser object. I have an SPUser object that I would like to populate that field with, but I cannot implicitly convert from one to the other. How would I ...
13
votes
1answer
12k views

How to get a SPFieldLookupValue from an SPListItem?

When you get an SPListItemCollection from a SPList.GetItems(SPQuery) request, and the items have SPFieldUser or SPFieldLookup fields, what is the sexy way to get typed values, not the ...