Forum Discussion
Flow to extract attachments from Inbox
- Apr 12, 2019No - the 'apply to each' required are automatically added by Flow when it detects that you are using an output that is an array - e.g. if you use an output from 'get emails' (rather than get email) - the action is automatically put inside a 'apply to each'.
Basically, you Flow would need to look almost identical to mine, in terms of blocks, at least.
Regarding the limit on number of emails it will get - I'm not sure, but it would be easy to test.
If you do find there is a limit, you may need to move batches of emails into a folder, and run the Flow multiple times.
I'm not using a shared mailbox, I'm testing with my user mailbox, so the trigger I have is 'when an email is received' - but using the action as per below, if I move an unread email or a read email from another folder into the 'Processed' folder - the flow triggers and saves out the attachment every time:
so in theory that would work if you created a new folder and had that flow trigger on the new folder, then moved emails from another folder into the new folder.
I'll give it a go using a shared mailbox - BRB.
Thanks Rob Ellis, I guess the main issue we are having is that it doesn't seam to trigger if more than 1 email is moved - ie if we move or copy 3, 4 or 5 emails it only every processes the "newest" one of those mails.
and we can't seam to get it to look at a existing mailbox that has the 2000 attachments in there and process more than 1 of those