Multiple Recipients in K2 Smartforms


Badge +6

Is there any way to specify multiple recipients for an email event in Smartforms, specifically when the email addresses are coming from UMUser Get Role Users method?  What I want to do is get all the email addresses of users belonging to a specific role, and concatenate them using a semicolon (example: test@test.org; test2@test.org; test3@test.org).


2 replies

Badge +10

Instead of concatinating you can also put the email event in activity and set multiple users on the activity's destiantion. In the email event in the "TO" field,  use the activity destination instance email. If you decide to concatinate the emails then I cannot see another way than to write some code in the code event. From my experience, make sure that when you concatinate the last email does not have a semi colon after it because the email event will fail.

Badge +4

Hi cjmoran,


 


Please look at the file attached on how I set it up.


 You can use this way just as you like this was just my example.


Please let me know if this was what you were trying to accomplish.


 


HTH


 


Regards


Quintin

Reply