Skip to main content
Solved

Loop through unread email

  • April 24, 2026
  • 3 replies
  • 84 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
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • April 24, 2026

@soumyadeep_c 

 


  • Author
  • 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

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.