Skip to main content

Hi, I am new in using K2.net. Is there someone who can tell me how to get users' email by using there AD?


The case is like this, when the flow goes from A to B. An email is sending to B's destination user using A user's email. But I can only get the "DomainUser Name" of the previous user. How can I get his or her email by using this AD?


Thanks in advance!

Hi Zhong,


Try Creating a Smart Object called ADUser mapping to the built-in K2 AD service Object.


Then in visual studio, you should be able to retrieve the email address with "DomainName" user name, from the K2 SmartObject out of the K2 Object Browser. Simply drag and drop the email address field from the SmartObject method output; K2 will ask for where the "DomainName" is stored.


The other option is using the SmartObject server event, it is quite self-explanatory.


 Regards,


Marco


Reply