Hi, I have 2 emails with the same name address, but I want to download first email only is there any way to save it.
@Palaniyappan @Lahiru.Fernando @lakshman
Hi
well we can keep the TOP property of mail as 1 in the property panel of get outlook mail activity
Cheers @balkishan
If you are having the multiple values, then
iterate through the mails and store the mail ID’s in a string type array , and when the loop iterates, check if array.contains(mail.address) , then skip or continue
Yeah ok @balkishan,
Then that would be the easy way to solve that issue as @Palaniyappan mentioned
Cheers bro
Hi @balkishan
You can also get the emails and also sort it by the date and time you got the mails… That’s another way of doing it…
bro, you already replied to that post. your comment is matched with my requirement. Thank you
Hi can we we sort it by date and time? Can you please explain Or we have option itself in the mail property activity.
ths could sort the mailmessages
yourmailmessagevariable = yourmailmessagevariable.OrderBy(Function(x) x.Headers(“date”)).tolist
with that we can take the one we want
Cheers @balkishan
date will be dynamic? what is x bro here ?
mailvariable can be a string type or mail.net.message type?
X is a variable use in the function
And yourmailmessagevariable is the variable that we get from get outlook mail activity which is of type List of mailmessages
Cheers @balkishan
okay okay understood, thanks you bro
No worries
well i hope the first option of TOP property will probably help you if its a simple filteration
but if we are taking it to a multi thread condition then we can use this expression
Cheers @balkishan
As of now I am using the first solution only.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.