Skip to main content
Nintex Community Menu Bar

Split function

  • March 19, 2019
  • 3 replies
  • 21 views

Forum|alt.badge.img+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

  • March 20, 2019

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


Forum|alt.badge.img+13
  • March 21, 2019

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.  


Forum|alt.badge.img+10
  • March 25, 2019

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