Login issue to gmail - Troubleshoot Steps

Please find the below sequence of steps to access Gmail account contents.
Generate App Password:

Generate the App Passwords to access the Gmail account.
Follow the steps to generate the password using the link:

Completing the steps will generate a 16-digit key.
Use the key for accessing the Gmail account using UiPath Studio.
Enable IMAP:

Enable IMAP for the Gmail account.
Follow the steps to enable IMAP using the link:

Completing both the settings will enable the user to access Gmail details using the UiPath studio.


Add a sequence with “GET IMAP MAIL MESSAGES” activity.
Port Number: 993
Server: imap.gmail.com
Email Id: abcd@gmail.com
Password : 16-Digit key

Completing the steps will result in a similar workflow.
Retrieved all the mails and displayed the total mail counts. (Screenshots)
Message Box Output: Reads out the total mails count in the Gmail Account.
File(s) Attached:

Workflow.Gmail Account Access.zip (1.9 KB)