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.
Thanks Rob Ellis
I guess the main issue is that it needs to trigger if we copy or move more than 1 email at a time in there and it doesn't seam to do that. It only every saves the attachment of the latest email, So if you copy day 5 mails into the folder only mail 1 will have its attachment saved
The folder we want to process the attachment in has 2000 emails, and we can't seam to get it to analyse this folder and extract from there
Pn1995 I can see that issue, agreed - it only triggers on the most recent email - including if using an Outlook rule to move the emails into the folder.
Using a manually triggered flow like this will do what you need
(Note I have mine set to only get unread emails, and limit to 10 - so you will need to increase that):
- Rob EllisApr 12, 2019Bronze ContributorNo - 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. - Pn1995Apr 12, 2019Brass Contributor
Thanks again Rob Ellis
So just to confirm in order for it to "process" more than 1 email you are suggesting that I need to created a "Apply to each" action - so if I want to process 10 emails create 10 "Apply to each"
Also in the "Get Email" "Top" field were you have 10, isn't there a limit of 25 to that?