Hi,
There are two ways to avoid it. Option1 . From outlook select the option that you prefer. If you want to stop these warning messages permanently, select the Never warn me about suspicious activity (not recommended) option.
Option2 : You can use “Element Exist” activity.
I’ve encountered this issue too and same as @kinive, Option 1 is not available due to IT policies.
I’ve tried Option 2 with an Element Exists activity, however the workflow seems to hang permanently on the Send Outlook Mail Message activity, and can only progress to the next activity if Allow or Deny is clicked manually by a user.
Would like to know if anyone has been able to overcome this?
First, my workaround: Parallel Sequence that Sets Focus to the popup, with a 6 second delay before Focus, then Clicks Allow without using SendWindowMessages or SimulateClick.
Funnily enough, I don’t have this problem on my development computer but on the virtual machine where my bot runs. It makes me second guess myself that there is some setting difference between the two machines that could prevent this issue. This is what I’ve discovered about the problem:
-The “Send Outlook Mail Message” activity will not stop, not even with a 2 second timeout put on it (I was hoping to use the try-catch to force it to move to the “Click” activity).
-Using the parallel activity is a step forward, but this security message has some issues with it
-The security message will not accept “Simulate Click” or “Send Window Messages”, the “Click” activity will not even error out, but report that it clicked successfully.
-The security message does strange things with the “Send Hotkey” activity. Tab and arrow hotkeys will not navigate to the “Allow” button
-I know using the 6 second delay isn’t best practices, but the “WaitForReady” options don’t work correctly. It ends up clicking prematurely in ever scenario I’ve found without the delay.
I don’t understand the point of Element and Image Exist. If you think the element will somehow not appear, then set the parallel sequence activities to ContinueOnError = True
Let me know if you guys find any improvements on this workaround or a better fix.
I can’t use option 1. I am already using Option 2, but the click activity is not working when the screen is locked (tried both simulate click and send window messages).
Things works when we use parallel activityand simulate click.
but when we use Get Outlook Mail Message and managed pop up window using parallel activity then I’m facing another problem. I can not access body, from, attachment properties of received message, I can only retrieve Subject. Please let me know if any one has solution for that?