cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
eddevadde
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
v-yamao-msft
Community Support
Community Support

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.

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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (44,452)