Outlook Application Pop up


I am using the RPA.Outlook.Application library to read emails from Outlook installed on my PC. While it generally works, sometimes an Outlook popup appears, causing the robot to get stuck on the “Get Emails” keyword for hours.


We have to manually click the Allow/Deny button to proceed.

I have already tried changing the Outlook setting to “Never warn me about suspicious activity (not recommended)”, but the issue still persists.

Is there anything we can do in the code to avoid or handle this popup?

Here is the code:

Library     RPA.Outlook.Application

${emails}    Get Emails   folder_name=Testing   email_filter=[Unread]=True

I’ve never used this library myself, however I found this:

Hope that helps,