If loop Issue

Hi Team

If the mail is not present it should go to else section and work flow should be terminated but in my case it is not going to else activity even though mail is not present


Thanks
Kamesh

2 Likes

Buddy @Kamesh
I think there is a mail with that subject, is there any like that…?

or check the property onlyunreadmessage property in the activity of outlook mail activity and try buddy @Kamesh

Cheers

Hi Palani

Only unread messages I am reading out look activity @Palaniyappan


image
Thanks
Kamesh

1 Like

Buddy @Kamesh
kindly check whether any mail has that even that string (the one in if condtion) in any of the mail subject, because the mail.subject.contains will check all the mails upto 50 (the count you mentioned) with string in the mail, that the mail may have that string as a substring in it…
still if that doesn’t work, restart the outlook and studio in your system buddy @Kamesh

thats would work fr sure

Cheers

1 Like

Hi @Kamesh

Please try

mail.Subject.ToString.Contains("New Access Creation Request")

Thanks and regards.
Despi

2 Likes

thanks a lot for your prompt surely will do restart the outlook and studio since I have deleted all the mail and tried @Palaniyappan

1 Like

Hi Jan

Surely wll try this too

Thanks
Kamesh

1 Like

Hi @Kamesh

Please refer to this post as well:

Thanks and regards
Despi

1 Like

Or buddy lets reduce the strings in contains argument, like
just pass like this and try
mail.subject.Contains(“New”) and mail.subject.contains(“Access Creation Request”)

TRY THIS BUDDY @Kamesh

Cheers

@Palaniyappan Nothing worked out. I deleted all the mails but still it is not going inside else loop