Split function

  • 19 March 2019
  • 3 replies
  • 9 views

Badge +5

Hi,


I have an email event which I would like to send to multiple users. The details are saved as a username so I need to use the AD User "getuserdetails" method to retrieve the email address, however in some instances there will be more than one username in the field e.g. domainusername1;domainusername2. Is there any way to split these so the getuserdetails method can get both email addresses?

 

Thanks.


3 replies

Hi Peanutbutter22,


 


Would it be possible to add multiple destinations to the email task, and then call the method twice for the different users that way?


 


Cheers,


Emily

Userlevel 4
Badge +13

Hi peanutbutter,


 


You can also try to pass the result from the AD User "getuserdetails" call to a worfklow data field and use that data field in your email event. It should split the email addresses as long as the string is seperate by a semi-colon.  

Badge +10

You may also find using an expression/inline function to split the strings on the delimiter (;) is a possible route.

Reply