cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
v-bacao-msft
Community Support
Community Support

 

Hi @Anonymous ,

 

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
v-bacao-msft
Community Support
Community Support

 

Hi @Anonymous ,

 

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.
Anonymous
Not applicable

ApprovalBot.jpg

Anonymous
Not applicable

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!!!

Lzco_IT
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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,664)