Tag Archives: ChoiceList

Don't use tabs in UserProfile ChoiceList values

When attempting to assign a UserProfile property, SharePoint does some character escaping. One of the things it does is convert tab-character to 	. The problem is that the allowed values for a ChoiceList do not have this escaped sequence. The … Continue reading

Posted in .NET | Tagged , , | Leave a comment

Adding choices to existing UserProfile properties

When editing ChoiceList items of existing UserProfile properties you also need to increment the MaximumShown property. Otherwise the changes (neiter removal nor addition) will be saved when calling Commit(). This won’t work: // Get the property from the UserProfileManager instance … Continue reading

Posted in .NET | Tagged , , , | Leave a comment