MailMessage item to new collection

Hi,

I’m trying to get the oldest mail in a collection. I have a get outlook activity and can extract the list.

What I want to do is take the last mailmessage (mailList.count-1) with index and assign this to a new collection. I’ve tried add to collection but I get an error about not being initalised (I think I need an assign with new list(ofstring) or something like that but I’m not sure of the syntax.

Can anyone point me in the right direction?

Thanks

1 Like

Yah initialise it with like this in the variable panel under DEFAULT
new list(of system.Net.Mail.Mailmessage) if we are storing mailmessages
or
new list(of integer) if we are storing index value as int32

Cheers @MichaelT

Awesome! Simple as that! Thanks

1 Like

No worries
any other queries buddy
Cheers @MichaelT

No, that’s perfect thanks!

1 Like

Kindly close this with right comment marked as solution
@MichaelT

Done. Thanks again

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