Skip to main content
Community site session details

Community site session details

Session Id : /Z3KxGzxG2jqjPNm1v4pBm
Power Automate - Using Flows
Unanswered

Check queue items, remove or add if required

Like (1) ShareShare
ReportReport
Posted on 24 Nov 2022 16:17:36 by 21

Hello, 

 

I have built a reoccurring flow to look at a custom entity records 'Review Due' date which are upcoming within 28 days or overdue, filter on a status reason, then add those which are identified into a specific queue. 

 

As this is a reoccurrence on a nightly basis (as we are using this to review all records based on file retention periods), the flow will show as failed for the records which are already in the queue. So, I have two scenarios I would like to solve through the flow: 

 

1. How to build into the flow to check if the item is already in the queue and not add it.  

2. How to build into the flow to check those which are in the queue, to make sure the original date conditions are still met (as these dates can change if a user enters them incorrectly). 

 

The first point is more important, the second I can advise users accordingly. 

 

Here's a snip of my flow so far: 

 

Capture 1.PNG

 

Capture 2.PNG

 

Capture 3.PNG

 

 Any help is much appreciated. 

 

 

 

  • cjewell Profile Picture
    21 on 29 Dec 2022 at 14:15:21
    Re: Check queue items, remove or add if required

    I haven't been able to work this out with other priorities; therefore, I did a work around.

     

    I ended up updating the File Retention Review record after adding it to the queue, with a marker in a field which is not on the form. This then allowed me to filter on this condition, and point one of this query is now solved in this way. 

     

    May be a round about way of doing it but it works. 

  • cjewell Profile Picture
    21 on 25 Nov 2022 at 11:48:18
    Re: Check queue items, remove or add if required

    Hi abm, 

     

    Thank you for that. The list of queue items does work; however, I can't quite figure out how to then only add the items to the queue if they are not there. 

     

    I have tried multiple ways, including having conditions and filters within those conditions/swapping the queue items and apply to each with the file retention apply to each; but, am not getting the results I need. 

     

    Any suggestions on how to filter both with the Queue Items and the File Retention Review conditions at the same time, using an 'Apply to each' for the File Retention Review items?

     

    Much appreciated

     

  • abm abm Profile Picture
    32,506 Most Valuable Professional on 25 Nov 2022 at 00:34:52
    Re: Check queue items, remove or add if required

    Hi @Cjewell 

     

    You can query the Queue Items using the filter query with queue id and record id. Please see below:

     

    image.png

     

    Above I have hardcoded the queue id and the record id which is in the queue. Replace those Guid's accordingly.

     

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics

Restore a deleted flow
Loading complete