Close pop up alert while activity execution

uiautomation
outlook

#1

Hello,

I have an issue while retrieving Outlook emails. In fact, beacause of security parameters that I can’t change, I receive an alert when the “Get Outlook Mail Messages” is executed.

Is there a way to interrupt the “Get Outlook Mail Messages” when such an alert is detected in order to automatically close the pop up ?

Thank you in advance


Error when using 'Sent Outlook Mail Message': A program is trying to send an e-mail message
#2

Hi @fr2016,

In this case, I would suggest you to use the Image Exists activity and when UIPath find this image it can send a hotkey and press enter for example with the Send Hotkey activity. Kindly check this approach and if you have any doubt, please let me know.


#3

@acaciomelo Can’t we use Element Exists in this case and check for ‘Accepeter’ Element?


#4

Hi @vvaidya,

I’m not sure because it’s a pop up window, but if possible using the Element Exists activity would be more reliable than Image Exists, anyway he could give a try to both activities.


#5

Hi @vvaidya and @acaciomelo ,

I’ve tried the Elements Exists and Image Exists. They both return False.

The issue is that the popup is launched only when the Get Outlook Mail Messages is executed.

The Get Outlook Mail Messages waits for the user click on the popup.

Is there a way to interrupt the execution of the Get Outlook Mail Messages when the popup appears ?


#6

Do you mind attaching the code file?


#7

@fr2016 just curious do you have this option enabled


#8

hello @vvaidya,

The company policy forbids any changes in the security settings on Outlook accounts. If I could I would have done it from the beginning to avoid the issue.


#9

getOutlookEmailsExample.xaml (7.2 KB)

Hi @vvaidya,

I’ve created a basic example process that gets Outlook messages with a specific subject. When the outlook activity is launched, Outlook requests the user approval which is pretty annoying because it interrupts the process and waits for the user to accept or refuse the action.


#10

Hi @fr2016

Will you be able to send the code along with Elements Exists or Image Exists that you were trying.


#11

@fr2016 Check below code

outlook.zip (10.6 KB)


#12

hey @fr2016

I am just amazed why you are not using “On Element Appear” activity for this.

https://www.uipath.com/activities-guide/on-element-appear

For further assistance see this attached sample workflow and change the selector. In this example i am just waiting for a delete recycle bin pop (will occur when you will click on delete button). and if it will occur then will click on yes.

Sidenote- Before run please re-indicate the elements because selectors will vary.

Sample1.zip (33.5 KB)

Regards…!!
Aksh


#13

You can use parallel activity with one section as do-while {element exists and click activity} and other section as Get Outlook Mail Messages.


#14

By Parallel activity you can managed to close this window, but it is restricting access to email item properties. I am not able to access email items fields like body, attachment, From.
Anyone has solution for that? UiPath team can help us with issue?


#15

Unfortunately no. This is Outlook’s security, we can t bypass it.