Skip to main content
Navigator | Tier 3
April 24, 2026
Solved

Loop through unread email

  • April 24, 2026
  • 3 replies
  • 168 views

When using the loop through unread email action for specific subject name if multiple unread email are with same subject name exists during execution does it take the oldes unread mail for that subject

Best answer by prathamesh.dhavale

Hi ​@soumyadeep_c ,
In loop action, It will be processed Last In First Out (LIFO) order. meaning the most recently received unread email is processed first, not the oldest. You can check only one unread mail and break the loop.
Thank you,
Prathamesh Dhavale.

3 replies

Aaron.Gleason
Automation Anywhere Team
Automation Anywhere Team
April 24, 2026

@soumyadeep_c 

 

Navigator | Tier 3
April 24, 2026

@soumyadeep_c 

 

Unfortunately I don’t have this sort option while looping through output mail box..I am using version 22.0 enterprise 

prathamesh.dhavale
Cadet | Tier 2
Cadet | Tier 2
June 18, 2026

Hi ​@soumyadeep_c ,
In loop action, It will be processed Last In First Out (LIFO) order. meaning the most recently received unread email is processed first, not the oldest. You can check only one unread mail and break the loop.
Thank you,
Prathamesh Dhavale.