Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

 

  • Adrian59 Profile Picture
    161 on at
    Re: Terminate a Flow when a SharePoint List Item is moved to another SharePoint List.

    Excellent and thanks Manish

    All working now.

    Just have to get time conversion and emails work now.

    Kind regards

    Adrian

  • Verified answer
    ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Terminate a Flow when a SharePoint List Item is moved to another SharePoint List.

    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
    Re: Terminate a Flow when a SharePoint List Item is moved to another SharePoint List.

    Hi Manish

    It did not work.

    Adrian59_0-1711602493034.png

     

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Terminate a Flow when a SharePoint List Item is moved to another SharePoint List.

    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
    Re: Terminate a Flow when a SharePoint List Item is moved to another SharePoint List.

    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,085 Super User 2025 Season 1 on at
    Re: Terminate a Flow when a SharePoint List Item is moved to another SharePoint List.

    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.

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow