Given the favorability of Attended automations with StudioX, we realized there are two approaches to the For each mail concept.
1. Get a snapshot of all the mails at a given time, then process them one by one.
Advantage: easy to develop (concept already exists in Studio).
Disadvantages: Slow if you have many mails to fetch. If a mail was moved/read by the user during execution, I cannot know without heavy rework. If new mails have arrived, I have to fetch again, otherwise I will not have finished “Each mail”.
2. Always get the latest/oldest mail.
Advantages: Feels natural for the user and can actually finish the Inbox in one Run.
Disadvantages: Harder to implement, as you need to find a way to mark the mails you already processed (read/unread, category?, move to folder).
Which way do you think would be best for StudioX and Attended automations?