Question

Getusersbygroup in Workflow email

  • 11 September 2020
  • 3 replies
  • 76 views

Badge +13

Hi,

 

I want to display a list of users from an AD group in an email with K2 Workflow Designer,

 

At the moment, when doing smartobejct method getuserbygroup, it's displaying all the users on one line

 

domain/user1domain/user2domain/user3

 

How do i get each name to appear on a seperate line in the email body?

 

Thanks


3 replies

Userlevel 1
Badge +5

Hi,


 


I have a solution:


In your context browser, search for the "join" function and drag it into the email body(see join.png), then in the configuration for the join function, put your user list in "Values" and "/br" in "Seperator" (see joinsettings.png). Hope this helps :)


 


Kind Regards


Prineel

Badge +13

Thanks Prineel,

 

That worked to a certain degree, but the problem is the AD DisplayName is Surname, Firstname, so it appears as

 

Bloggs Fred

Pitstop Penolope

 

Anyway of doing a function to swap them around before it writes it  to the email body?

Also, what if you want more than one field on a line, what it i need Name + department?

 

Thanks, it's at least partially working

Userlevel 1
Badge +5

Hi,


 


Unfortualnately I could not figure out a way to get more than one field on a line, and as for swapping the first and last name, I did find this article, but it did not work for me, maybe you will have better luck on implementing it.


 


Kind Regards


Prineel

Reply