martinsuessabsc

How to dynamically assign Workflow tasks to multiple users without using roles?

Jump to solution

Hello everyone,

 

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: 8850iEE3C752583B28388.pngwhere 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 

 

0 Kudos
Reply
5 Replies
BB33
Apprentice

Re: How to dynamically assign Workflow tasks to multiple users without using roles?

Jump to solution

@martinsuessabsc

 

U can use people picker control on your view/form. Use this control value in your workflow to assign task.

 

0 Kudos
Reply
martinsuessabsc

Re: How to dynamically assign Workflow tasks to multiple users without using roles?

Jump to solution

Hi  @BB33 

 

Thank you very much for your suggestion! I didn't even think of that. Will try as soon as possible

 

 

0 Kudos
Reply
kateV1
Apprentice

Re: How to dynamically assign Workflow tasks to multiple users without using roles?

Jump to solution

Hi martinsuessabc,


 


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...


 


Picker Control - https://help.k2.com/onlinehelp/K2Five/UserGuide/5.3/default.htm#Create/K2Designer/Controls/Picker/Pi...


 


Tutorial Example - https://help.k2.com/onlinehelp/K2Five/UserGuide/5.3/default.htm#How-Tos/PickerControl/WithURM/Picker...


 


https://help.k2.com/onlinehelp/K2Five/UserGuide/5.3/default.htm#How-Tos/PickerControl/WithCascadingF...


 


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.


 


Cheers,
Kate


 


K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.


 


 

0 Kudos
Reply
martinsuessabsc

Re: How to dynamically assign Workflow tasks to multiple users without using roles?

Jump to solution

Hello  @BB33  @kateV 

 

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:

 

8864i8A6F6C473963114B.png

 

 

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?

0 Kudos
Reply
rawan_ayoub
Novice

Re: How to dynamically assign Workflow tasks to multiple users without using roles?

Jump to solution

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.

0 Kudos
Reply