Delete the Pwd variable from the Variables pane. Click the Get Password activity. Delete Pwd from the password activity. Put your cursor in the password field and press CTRL+K. Then type Pwd and press enter. It will create the variable for you with the correct datatype.
i have done everything but i donât know what is going on
![]()
Dont loose itâŚjust follow carefully
- First allow imap setting on gmail and get the app passwordâŚthe link provided above will help
In getting it - For creating a securestring variable create a variable and then click on the variable type âŚand you would see a drop down where you would select browse for types and search for Securestring and select itâŚNow you just need to assign the password value which is as string to it using
New Net.Networkcredentials("","Passwordasstring").SecurePassword
Now the password is assigned to variable just assign thw variable username and pssword int heir fields and port and server are to be preocided which are again present in the link
Cheers
You canât use Get Password. It encrypts the password you give it. Thatâs not correct. You canât pass an encrypted password to the IMAP activity.
You arenât supposed to be using the password for the Gmail account. This is what youâre supposed to be using.
https://docs.uipath.com/studio/standalone/2022.10/user-guide/enabling-gmail-for-email-activities
Hi @Stuti_Dutta
The password has to be store in a secure string datatype variable.
Create a variable called Password in the variables panel change the variable type to secure string. If you canât find it click on the browse for types and search for Secure String then click on the secure string like the below image.

Take an assign activity
-Assign -> PasswordVariable = New System.net.NetworkCredential("","Give your password here").SecurePassword
Then pass the password variable in the securepassword field in properties of Get IMAP Mail messages activity.
Hope it helps!!