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

Approval Flow Based on Properties

Hello,

 

I'm creating an approval flow for files that routes the approval to different people based on additional property fields like "Region" and "Tier." Right now, the flow starts with "When and item is created" but then immediately fails because the region field isn't set yet. The flow works when I set those columns to default to values but that's obviously not a solution either. 

 

How can I prevent this flow from running for a minute or two to give the user time to select the proper options from two property fields? Is there such a thing as a wait period so this flow won't start until that additional property field is completed? It's still different from when an item is modified though becuase I don't want to start this process again every time a property changes. 

1 ACCEPTED SOLUTION

Accepted Solutions
v-lin-msft Post Prodigy
Post Prodigy

Re: Approval Flow Based on Properties

Hi @rzaddTDOE ,

 

 

Could you please share a screenshot of your flow’s configuration?

 

Based on your description of your requirement, I think you can try this approach:

  1. Add a delayed action below the trigger, which is set for two minutes, so that the user can have time to set other properties.
  2. Then add a Get item action and Get the attribute of the item again according to the trigger ID.
  3. Then you can add a compose to check if the properties have been added and can be used.

Annotation 2019-05-27 151712.png

This method is also applicable for trigger "when a file is created". You can have a try. If there is any problem, please contact us.

 

Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Super User
Super User

Re: Approval Flow Based on Properties

Hi @rzaddTDOE , there is the delay schedule which you can add although in this case it won't work. Your trigger is "When an item is created" so the item has been created already when you invoke the delay. Why can't you get the user to add the region with the other columns when they create the item?

Rob
Los Gallardos

rzaddTDOE
Frequent Visitor

Re: Approval Flow Based on Properties

Hi Rob,

 

Thank you. The problem is the flow initiaties the second you drag a file for upload. There's no way to get the information added in time to be there for the flow. Does that make sense? Or is there a way to prevent the file from uploading until the properties are set? I should clarify that most of these items are being created on local machines and then being moved to this folder for approval.

Super User
Super User

Re: Approval Flow Based on Properties

No, there's no way that I know of to stop the file from uploading until the properties are set.

Rob
Los Gallardos

v-lin-msft Post Prodigy
Post Prodigy

Re: Approval Flow Based on Properties

Hi @rzaddTDOE ,

 

 

Could you please share a screenshot of your flow’s configuration?

 

Based on your description of your requirement, I think you can try this approach:

  1. Add a delayed action below the trigger, which is set for two minutes, so that the user can have time to set other properties.
  2. Then add a Get item action and Get the attribute of the item again according to the trigger ID.
  3. Then you can add a compose to check if the properties have been added and can be used.

Annotation 2019-05-27 151712.png

This method is also applicable for trigger "when a file is created". You can have a try. If there is any problem, please contact us.

 

Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (7,779)