I’m using the command “Input Dialog” to ask for a user what e-mail adress the user can send a email.
But, on my test, I need write the complete email adress, like “test@test.com”, but I want write just the name of my contact, and the UiPath convert this name on a email adress, for example: If I write “John”, the uipath uses the email adress “john1233@test.com”.
Alright, so if u have, for instance an Excel with the name and the emails, u just have to ask for the name of the contact.
After that u iterate throw the data table or the array, and if the row have the same name that the name that the user inserted, the email it’s that one
The code get the information you need to write in excel file.
1- Get the name in email
2 - Create a DataTable with columns “Name” and “Address Email”
3 - Create a row
4- Fill the values in Datable through For each Row Activitie
5- Write the DataTable with the values filled in Excel File