peanutbutter22
Apprentice

Split function

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.

0 Kudos
Reply
3 Replies
emilyc1
Apprentice

Re: Split function

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

0 Kudos
Reply
lkimberly
Apprentice

Re: Split function

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.  

0 Kudos
Reply
Mike_K2
Apprentice

Re: Split function

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

0 Kudos
Reply