how to Create Dynamic Recipients

  • 8 December 2017
  • 8 replies
  • 39 views

i'm trying to create dynamic recipients, i'm doing what the k2 five guide about dynamic recipients.

the result from the smarto bject create 3 user, but when assigning task only 1 user ( all user from the smart object become 1 user)

 


13469i5527A08276E8D055.png


8 replies

Badge +5

Hi Andika,

 

Could you also post a screenshot of the User Task Recipients tab for the User Task in question inside your workflow? It would be helpful to see how you have that configured before responding. Are you using a GetList method to pull in the recipients from your SmartObject?

 

 

Thanks,


Jason

I've attached my screenshots where i recieve the same issue... 

 

I also attempted to use a single string with the recipeients joined with a semi-colon ie : "DENALLIXMark;DENALLIXBrandon". This did not work either.

 

 



Userlevel 6
Badge +16

Hi,


 


As a test, can you pass the Approvers Name to a Set Data Fields step? What value does it return?

When assign the pass the approvers name into a data field i get the same result as the OP.

Badge +9

This got me curious... can you show us where in the K2 Five guide gives the example of configuring dynamic recepients? 

To the best of my knowledge there are no examples of creating dynamix recipients for K2 Five.

 

 

I have found an example in previous versions where the split method was called on a semi-colon concatenated list of users. 

https://vijaydk2guy.wordpress.com/2017/10/04/handling-multiple-destination-users-dynamically-from-multiple-sources/

 

I have now implemented this method to get my scenerio working. 

 

 

Badge +9

Ok, I've found the page in the K2 Five guide, and just in case anyone else wishes to take a look at it:


 


https://help.k2.com/onlinehelp/k2five/userguide/5.0/default.htm#K2_Workflow_Designer/Common/DynamicUser/DynamicUser.htm


 


What wasn't mentioned on the page was how you could specify multiple users in a single dynamic field, or that what the guide shows is for a single user/group/role, not multiple, so that might have cause some confusion. 


 


And yes, the Split method is the way to do it. 

Badge +4

@Ziqing wrote:

Ok, I've found the page in the K2 Five guide, and just in case anyone else wishes to take a look at it:

 

https://help.k2.com/onlinehelp/k2five/userguide/5.0/default.htm#K2_Workflow_Designer/Common/DynamicUser/DynamicUser.htm

 

What wasn't mentioned on the page was how you could specify multiple users in a single dynamic field, or that what the guide shows is for a single user/group/role, not multiple, so that might have cause some confusion. 

 

And yes, the Split method is the way to do it. 


Took me a while to figure out how to do this. It would be helpful if you would update the documentation about this. 

Reply