cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Start a separete flow for each attachment in an email?

I'm building a flow that handles email attachments and saves them to a SharePoint library, and onwards pushes them into an approval process.
 
I've managed to filter out email signatures and only accept certain file types, but i am still having some issues since i have to use "apply to each" statements. When i configure my approval, I cannot retreive any data from the sharepoint file creation, since it's located in another "apply to each".
 
Q. Is it possible to start a separete flow for each attachment in an email?

 

Thanks

//Ed

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Start a separete flow for each attachment in an email?

Hi eddevadde,

 

I assume that your flow is triggered by “Office 365 Outlook – When a new email arrives”. Could you show me a screenshot of your flow?


When we use this trigger, the attachments in the email will be saved in the destination folder, such as a SharePoint library.


If you want to start a flow for each attachment in an email, you may consider to create another flow which is triggered by “SharePoint – When a file is created”.


Please try if this trigger will meet your needs.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
New Member

stRe: Start a separete flow for each attachment in an email?

Thanks for your reply!

 

The problem with the approach you are suggesting is that i loose the metadata about the file. Like the sender of the original email. I also cannot manually create any meta data for a file in SharePoint? (I just started working with flow so i might be missing something here.)

 

This is the flow, in three parts, since i can't fit it all in one screen.

 

Start of flow:

1.PNG

 

 

Create file in SharePoint (Tillämpa på vardera)
2.PNG

Approval process (Tillämpa på vardera 2)

 

 

3.PNG

 

 

 

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (5,203)