Hello!! I have this situation:
I want to send an email to the account ABCD@outlook.com, but first I want to check if that account exists. If it exists I want to send the email, if it does not exist I do not want to do anything.
How can I do with UiPath to check if the recipient exists? Thank you!
The best way would be to validate it against AD (Active directory) , if the email address is in your domain itself you can check it against the AD. but if its outside the domain … then it would be difficult …
Try this for searching on AD .
bool EMailExists(string emailID)
DirectoryEntry objDirEnt = new DirectoryEntry(@“LDAP://yourLDAPAddress”);
DirectorySearcher objSearcher = new DirectorySearcher(objDirEnt);
objSearcher.Filter = “(&(objectClass=user)(email=” + emailID+ “))”;
Once you obtain the required dlll , follow the last guide to import the dll as a reference and get a nuget package created for it. And then install the package , and then from Namespaces window , import the namespace.
I know its not straight forward you can give it a try meanwhile i will also work on getting this nuget created , and will share once i get done ,
Thank you very much Sai.kiran, I’m trying to do that. The problem is that UiPath Studio does not show me the package. I already put the package in the Uipath folder, the Activities folder, and the Packages folder. And the ManagePackages does not show me the package I made
I downloaded the DirectoriesServices file and created the file following the NuGet tutorial