Sharepoint 2016 itemupdating afterproperties

Ok, so just change to plain text and everyone is happy right? When users connect to the list via the Outlook option, you get a very nasty set of HTML saved to the column (even in Plain text mode): $list = $web.lists["Task Test"]$def = $list.

There is an event receiver that handles the Item Updating event and it needs to read the values a user enters into a People or Group column that allows multiple selections.

The 2007 code used to read the new values entered was: This code read the new values entered by the user and created a new SPField User Value Collection object containing an SPField User Value for each person or group entered. After Properties for the field returns values such as "9;#BLACKDOGnormaluser1;#2;#BLACKDOGryan", which is perfect and creates a valid SPField User Value Collection.

If a field is changed the method will return true to indicate that the files needs to be submitted to the Content Organizer.

The above method performs the actual submitting of the file to the Content Organizer by calling Official File Core. This method will return an Official File Result to indicate whether the submitting was successful of not.

I hear you asking how can I submit a file for routing.

Let’s take a look at the Item Updated receiver I have written.

Out of the box this isn’t possible this means you will have to create a custom solution.

What you can do is create a list settings page that you will have to register on document libraries.

So basically, the datasheet view in 2010 for People or Group columns has what I would call a bug (MS might disagree) and only returns data containing the user IDs from After Properties.

It’s thus impossible to create a valid SPField User Value Collection object. Since datasheet only returns the IDs, and the string format (using the “;#” delimiter) is the same as when submitted from a list view, we can key off the IDs.

It worked fine in 2007 for both standard list views and datasheet view. In 2010 datasheet view, the same field and the same users returns a value of "9;#;#2;#".

Tags: , ,