To do that by RPA application, we need query the mail list first, then run a for loop for each item, to do the delete operation, could you guide me how to implement that?
Thanks for your response, sorry for my late feedback.
I am trying to practice. Do you know how I can get the mail number in the Trash box? assign it to a variable, then I can implement a for loop for each item deletion?
There are several types of loops, the most common is ‘For Each’ which will loop over each item from an already established list or collection or items.
For example looping over each row in a data table. Usually you dont want to me adding or removing items from the list you are using during looping over it in this way as you can get errors.
The other main type of loop is a Do loop.
There are two flavours, Do While, and Do Until.
They will both loop as long as a specific criteria is not met, but either check at the start of the loop or at the end of the loop.
You could use a Do While loop so that as long as you can see another email, you will select it and delete it.