How to use If Activity with Get Mail Activities

@Palaniyappan

How can I filter ?

Hi
the condition should be like this
"[SenderEmailAddress]= ā€˜test@gmail.comā€™ "

and get the variable from that GET OUTLOOK MAIL ACTIVITY and to get the count
mailMessage.Count.ToString in writeline activity

Cheers @sufyant

2 Likes

Not working

1 Like

Fine
is that mail now unread or marked as read

Cheers @sufyant

2 Likes

No they are unreaded now

hmmā€¦i wonder why it didnt, let me think whether i missed any
the condition is correct
@sufyant

2 Likes

Use Get Outlook
Then In for each use condition
If
mail.from.address.ToString.contains(ā€œtest@mail.com")
Then do steps and then Use break as you dont want to see another mails or if you want a total number of mails from that then u can set a flag
before for each
Assign Flag=ā€œā€ and Count=0
In for each
if
mail.from.address.ToString.contains(ā€œtest@mail.com")
then if Flag=ā€œā€
then send notification or whatever
after that in then only assign Flag=ā€œMail Sentā€
after that
Assign Count=count+1

So finally You will get only one notification when you get mail from that id
also u can use COUNT
for not getting from this id means If count =0 no mails from that id
Plus in Count You will get no of mails from that ID

1 Like

it my fault. its working now

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.