Get all emails in folder - (Top field is restricting)



Can any one guide on how to get handle of all emails in a specific folder. Using “Top” field in activity “Get outlook Mail message” is restricting the number of results.
Basically i have a outlook folder which may have 10 or 50 or 100 emails which i dont know. i would like to process all the emails in the folder.

I searched the forum but don’t find pointer for this simple subject.


Hello @skswain,

Maybe this template ReadAllMails.xaml (10.3 KB)

could help :


It is a version of:



Hi @skswain

Or you can set the Top option Int32.MaxValue. It will retrieve a maximum of 2,147,483,647 emails.


Thanks…it works…
where can i find these tips and tricks


Um… i just use Google for most of them :blush: :smile:


Thought I should share this with you. Found another trick to retrieve all messages: enter a negative value to the Top option :slight_smile: