Problems checking open app (Outlook)

Help!
I need help with a simple automation, but that’s giving me a headache a week ago.
Well, the idea is:
check if the outlook is open, if yes send the email (still do not know how to verify if the email was sent).
If it is closed it enters the RetryScope (do while it is closed) to open the outlook and send the email.

Problems:
I’ve already tried using ElementExists and GetProcesses to check, but as you can see in the attachments, the two open a new Outlook window, even with it already open.
I was advised to use Exists in Collection, but I do not know how to use it.

Can someone help me, no other previous solution fit what I need :frowning:SolicitacaoApontamentoTratado.xaml (19.4 KB)
SolicitacaoApontamento.xaml (17.7 KB)

See this similar thread which has a solution on checking if mails are sent:

I have made some changes in your xaml to check if OUTLOOK is running process and it works.
SolicitacaoApontamentoTratado.xaml (20.2 KB)

Let me know if it helped

1 Like

Hi @nadim.warsi

Sorry for the delay, now that I got back to the project. Thanks for the link to verify that the emails are sent, I will review. I’ll test the changes you’ve made, cheering to work :smiley:

1 Like

@nadim.warsi

Thanks for the solution, it worked like I needed it. At first I made some mistakes, but it was a problem in RetryScope, I made a change in the IF and it worked

I took the assing of the Retry scope and in the condition of the IF put processExists. I had used the guide to test and I believed it did not fit my case

:slight_smile:

1 Like