I was looking for a solution to dynamically assign Workflow tasks to multiple users but nothing I found so far has been working for me. The reason I don't want to use roles here is that those Users can change quite frequently and I want to avoid constantly having to go into Management and editing the roles.
Ideally I would want something like this: where I can use a string with all users and the task would be assigned to those users. Would that be possible in a way? Or maybe somebody has had a similar problem and found a different solution?
Thank you for any anwsers
Solved! Go to Solution.
U can use people picker control on your view/form. Use this control value in your workflow to assign task.
In addition you may checkout the below documentations in regards with picker control for more details
Using the picker control -https://help.k2.com/onlinehelp/K2Five/UserGuide/5.3/default.htm#Create/K2Designer/Controls/Picker/Us...
Should you feel that this post is of use and or an accurate solution to the raised question, I kindly encourage you to mark it as such
using the 'Mark as Solution', 'Kudo' andor ‘Me Too’ options.
K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.
So I tried it but it only works if there is just one value in the control, when I have 2 or more values none of them get the task assigned.
In my case I take the value from the picker (e.g 'Id1;Id2' as multiple values are saved in that format) and write it into a Smart Object.
In the Workflow under the Recipients for the task I take that field from the Smart Object and try to assign tasks so it looks like:
The variable behind the is the smart object field containing all the IDs of the users the task should be assigned too, so in my example above it would be "Id1;Id2"
However this works if there is only one value but I also need it to work if I choose multiple values. I hope you understand what I mean. Do know any solution to this?
This is an answer that came about 2 years to late but you can use Split to get what you are asking for and seperate them by ; and if you have a userpicker with multiple values then you use split aswell.