cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Teams/Shifts and flows for approvals. Limiting the flow to pending status only.

Hi there... I have created a Team and a shift for a rostering system.

I have managed to create a flow which runs each 10 minutes and pulls the open shift offers in.

I then have an action to auto approve, using the ID from the initial pull.

This works as expected, however the script seems to reexamine all the shift offers and returns errors for all except the newest ones (which it hasnt seen yet).

 

Is there a specific "filter" or similar or another way of using this action so that there isnt so much wasted screening going on?

 

There is an "apply to each" module there which holds the approval action. Perhaps this is the point where the filter is applied?

 

Thanks

Tony

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

 

Hi @TonyKuiperSAAS ,

 

Could you please share the screenshot of the Flow configuration?

It seems that you could use Filter array to filter requests or use Condition in Apply to each to filter requests.

Please check the following link to get more details about Filter array:

https://sharepains.com/2018/12/18/microsoft-flow-filter-data-in-an-array/

 

Best Regards,

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

 

Hi @TonyKuiperSAAS ,

 

Could you please share the screenshot of the Flow configuration?

It seems that you could use Filter array to filter requests or use Condition in Apply to each to filter requests.

Please check the following link to get more details about Filter array:

https://sharepains.com/2018/12/18/microsoft-flow-filter-data-in-an-array/

 

Best Regards,

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

ApprovalBot.jpg

Your link pointed me to some good resources on filtering arrays. I have managed to filter the data now so that only the appropriate data items are getting progressed to the final stage. Cuts the run time down a lot!!!

New Member

I hunted this down and solved my problem similar to OP : 

 

https://github.com/OfficeDev/Microsoft-Teams-Shifts-Power-Automate-Templates

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 (3,421)