cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Foreach Output

I am trying to have my flow recognize when a new file is created in a particular folder in OneDrive for Business.  This is a subfolder that was created earlier in the flow, inside a foreach group.  There is no available output so I have tried many different options, from typing in the folder path using dynamic tokens to creating a variable and nothing is working. I'm sure this is an easy fix but I cannot get it to work.  Thanks in advance!

foreach output.png

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User III
Dual Super User III

It looks like you are trying to use a trigger (When a File is created) in the middle of your Flow.  Triggers don't really work that way.  Triggers need to be the first action in a Flow otherwise they do very unpredicatble things.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
Dual Super User III
Dual Super User III

It looks like you are trying to use a trigger (When a File is created) in the middle of your Flow.  Triggers don't really work that way.  Triggers need to be the first action in a Flow otherwise they do very unpredicatble things.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Super User III
Super User III

Hi @Pstork1 , @dawnrene 

 

I was thinking the same earlier then I thought it must be two different flows. Does the flow designer allows to create two triggers? I haven't seen that option before.

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials
Frequent Visitor

@abm @Pstork1 

 

This is all in one flow. When I was using this earlier, I had this trigger set to any file that was added in the larger folder and that functioned perfectly. I need it to only trigger when a file is added in a certain folder OR that matches a certain name. It doesn't matter which one but I can't get either to work. Maybe having a complicated trigger mid-flow isn't going to work, but if not, I'm kinda stuck.

Dual Super User III
Dual Super User III

I've asked the product team for specific details, but as I said I've never seen a Trigger added mid Flow work reliably.. Although the designer allows it I really don't think its designed to work this way.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (4,544)