cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
eddevadde
Level: Powered On

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
Community Support Team
Community Support Team

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.
eddevadde
Level: Powered On

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
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 188 members 4,694 guests
Please welcome our newest community members: