Forum Discussion
Pn1995
Apr 08, 2019Brass Contributor
Flow to extract attachments from Inbox
Hi We have a Outlook Inbox that has a subfolder in this that contains lots of emails with attachments on them. We want to be able to extract the attachment from these emails and save them int...
- 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.
Rob Ellis
Apr 08, 2019Bronze Contributor
A couple of quick ideas / options:
1 - Create another new folder under Inbox, configure the Flow to run against that new folder, then move all the existing emails to the new folder - so the Flow triggers on them.
2 - Create a Flow that is triggered manually (or on a schedule), and points at the folder - this Flow would need to have steps something like this:
- Get items in folder that have attachments
- For each, get the attachment and save it
1 - Create another new folder under Inbox, configure the Flow to run against that new folder, then move all the existing emails to the new folder - so the Flow triggers on them.
2 - Create a Flow that is triggered manually (or on a schedule), and points at the folder - this Flow would need to have steps something like this:
- Get items in folder that have attachments
- For each, get the attachment and save it