Skip to main content


 

Symptoms

 


How can I assign a task to a Sharepoint 2013 'Person or Group' type column that allows selection of multiple users.
 

 

Diagnoses

 


Some points to consider:

 

 

 

1. The destination type 'User/Group/Role' is configured during design time if a task is assigned to a string, K2 does not know what type this string refers to it is up to the developer to define this during design time

 

 

 

2. Destinations will need to be in the format 'K2:DOMAINUsername'

 

 

 

3. When using the Smartobject for this List/Library it will return the data as follow:

 

 

 

a. ColumnName: 27;29

 

b. ColumnName (Value): Codi Kaji;Mike Talley 

 

 

 

Resolution

To accomplish this requirement, the workflow was configured as follow:

 

 

 

1. Use a data transfer event and call the nSystem > Sharepoint 2013 Integration > Sharepoint Integration Helper Methods (SmartObjects) > Get K2 FQN for Sharepoint Users (method)] against the semi-colon separated IDs '27;29' returned by the People or Group column to return string 'K2:DENALLIXCodiK2:DENALLIXMike' (make sure to select 'Return all results that match filter')

 

 

 

2. Use a String function to replace 'K2:' with ';K2:' such that the string is now ';K2:DENALLIXCodi;K2:DENALLIXMike'

 

 

 

3. Use another String function to remove the first semi-colon leaving the string as 'K2:DENALLIXCodi;K2:DENALLIXMike'

 

 

 

4. Then during the Destination Set configuration, use a String split function within the destination set to split this string by the semi-colon (;) This will effectively assign a task to all users selected for the 'People or Group' column.

 

 



 
Be the first to reply!

Reply