Skip to main content
I use K2UserManager replace AD and i want to send notification Email to the destination user, but when i use this code it return blank to variable strEmail

Dim oUser As SourceCode.KO.User
oUser = K2.ActivityInstanceDestination.User
strEmail = oUser.Email

i think this code is used for AD

thanks for your time
The default SQL User manager installation creates a new database (K2SQLUM) with 3 tables. The users are stored in the "K2Users" table where there's a field called "UserEmail". If you execute the code you quoted, it will query the "UserEmail" field for the user you used to open the connection.

If you are getting an empty value, make sure that the user used to open the connection actually has a value specified in the "UserEmail" field in the db.

Reply