Clearing a list


#1

I am new to ui Path.
Can anyone help me to clear a Mail message list?
After retrieving mails using the get outlook activity i want to clear off the mail message list.How to do clear it?
Thanks
Jewel


#2

Hi @jewel

I am actually not sure if that is the best solution, but this Assign activity will clear your variable by assigning it a new, empty instance:
yourList = new List(Of System.Net.Mail.MailMessage)


#3

@jewel

Use This Workflow
Main.xaml (5.9 KB)

And Please Update