web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Terminate a Flow when ...
Power Automate
Unanswered

Terminate a Flow when a SharePoint List Item is moved to another SharePoint List.

(0) ShareShare
ReportReport
Posted on by 161

I have a flow that monitors a single SharePoint List Item when created. If the List Item is completed and moved to the Archived database prior to the end of the Flow Delay Period, the Flow fails, and I get failure messages from Microsoft.

How can I Terminate the Flow when the List Item is no longer in the original SharePoint List.

Any help would be greatly appreciated.

Adrian59_0-1711591506938.png

 

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @Adrian59 

     

    You can add "Get items" action with filter query to check if an item exists in the list. Here is an example:

    ManishSolanki_0-1711597776491.png

    ID eq @{triggerOutputs()?['body/ID']}

    Next, we will check the length of output array from the get items. The length will be greater than zero if item exists else it returns zero.

    ManishSolanki_1-1711598027311.png

    Expression used for calculating the length of output array:

    length(outputs('Get_items')?['body/value'])

    Pls adjust the name of the get items action in the above expression.

     

    Add terminate action in "Yes" block when item is not found, or length is zero.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • Adrian59 Profile Picture
    161 on at

    Hi Manish

    Thanks for your response. Unfortunately I understand technically what you are saying but visually it is not working.

    This Flow is for 1 SharePoint List Item only. Below is the error I am getting.

    Adrian59_0-1711600861182.png

     

  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @Adrian59 

     

    Pls add "Get items" action as mentioned in my previous reply after "Delay" action that query the list with item ID.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • Adrian59 Profile Picture
    161 on at

    Hi Manish

    It did not work.

    Adrian59_0-1711602493034.png

     

  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @Adrian59 

     

    The filter query syntax is incorrect. Pls give space after eq operator.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • Adrian59 Profile Picture
    161 on at

    Excellent and thanks Manish

    All working now.

    Just have to get time conversion and emails work now.

    Kind regards

    Adrian

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard