Skip to main content

Good day dears,

 

I am trying to send an email to the originator of the workflow and CC his manager which i can only get his username from our database. 

 

So, I need a way to pass userID and get the emailID from AD?

 

 

Thank you

Hi,


 


Do you mean you want to get the manager's email by using his username? There are two ways you can do this. You can use a AD User SmartObject to directly query the AD, or you can use the UMUser SmartObject, which will query the Identity.Identity table on your K2 database.


 


The UMUser SmartObject is created out of the box, so you just need to find it to use it. The AD User SmartObject is not created out of the box. You have to look for the AD Service2 service instance, then create a SmartObject from the ADUser service object.


 


Reply