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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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)
  • Manish Solanki Profile Picture
    15,167 Moderator 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

     

  • Manish Solanki Profile Picture
    15,167 Moderator 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
    Manish Solanki Profile Picture
    15,167 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard