I want to generate the following exception:
I am looking for a mail from a particular email ID.
Now, I want to raise an exception in case there is no email from that email id.
I want to send an email to the same email id saying that ‘you haven’t sent any email.’
Is it possible?
How can i do that?
Do you want to check if there is no unread mail ID in Inbox from the particular user?
Here is the sample workflow how you can do that.
mailExceptions.xaml (6.0 KB)
Make sure you have checked the OnlyUnreadMessages check box while using the Get outlook mail messages activity.
I missed that in my workflow
HI @udhhav_arora
Yes of course thats possible with these steps buddy
-use get outlook or any get mail activities and get the output from that activity with a variable of type mailmessage collections named out_mailmessage
–Then use a if condition and put condition like this
out_mailmessage.Count>0
and if this condition gets passed it will go to THEN part of if condition where we can mention the activities we want actually to proceed further or it will go to ELSE part where we can mention the another SEND OUTLOOK or SEND EXCHANGE mail activity with a body stating that there is no mail under this filter
@Palaniyappan But won’t this count all the mails? I just want to check the mail of a particular sender.
You can filter the get outlook mail activity on behalf of sender’s mail id, and then check the count
The one I attached in the previous post is similar to this. It will work i hope
It says your XAML file has an issue in opening. @HareeshMR
mailExceptions.zip (2.0 KB)
Try this
I’ll try that.
Thanks.