cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dawnrene
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
Pstork1
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
Pstork1
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

abm
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 blogPower Automate Video Tutorials
dawnrene
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.

Pstork1
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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

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

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (64,512)