This article refers to legacy products, components or features. Therefore, the content in this article is offered "as is" and will no longer be updated. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.
Within SharePoint lists, one has the option to create columns in which users can specify multiple people. In processes where these groups of people are used as destinations, the user must construct an inline function to split the list into individual items in order to resolve correctly.
For example in the image below, the UserMulti column has two names in it.
Metadata mapping in K2 SharePoint events
When users create K2 SharePoint events, they are able to map the item metadata to a K2 XML Field. When the event is executed, the XML is populated with the metadata from the SharePoint List Item. In the case of columns which are of type 'People' and have multiple entries, the corresponding metadata field value will be a semicolon delimited string representing the list of people in the column.
Using SharePoint People in K2 Destination rules
Since the metadata field value is a semicolon delimited string, it will not resolve correctly if the user merely drags and drops the value into the Destination rules. In order to properly resolve the semicolon delimited string, the user needs to construct an Inline Function to split the list of people into individual values.
A user can use the “Split” Inline Function to create a list of Destination Users that have been mapped from the SharePoint list people column.
In the case where fields with a single value have been mapped, the user can simply drop the corresponding metadata field value into the Destinations field and these will be resolved correctly.