Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Approval Panel - Doesn't update if a document is deleted before approval

(0) ShareShare
ReportReport
Posted on by 8

I have developed a flow that uses the trigger "When a file is modified or created" in a document library and it has an approval further down the flow that runs when a certain value in a custom meta data column is selected. During testing I've found that if you delete a file after an approval has been started the approval still shows in the approvers 'approval panel' and it acts as if the document still exists. Is this functionality intended & is there any way to delete the approval if the associated document is deleted? 

Althought someone shouldn't delete a file once it has been sent from approval I am not ultimately in control of other users actions and it is a possibility that they dont follow the correct procedure. 

  • GabrielStJohn Profile Picture
    on at
    Re: Approval Panel - Doesn't update if a document is deleted before approval

    Hello, @Scottb1!

    Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-yamao-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

    Thank you for being an active member of the Flow Community!

    -Gabriel
    Flow Community Manager

  • Verified answer
    v-yamao-msft Profile Picture
    on at
    Re: Approval Panel - Doesn't update if a document is deleted before approval

    Hi @Scottb1,

     

    It is a default behavior for flow that once an approval request is sent, the flow will keep on running until a response is given, though the file that triggered the flow has been deleted.

    If you would like a feature to delete the approval if the associated document is deleted, please submit a request on Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

    Besides, if you want to restrict users’ behavior, you could specify permission level to users in SharePoint, please take the following doc for a reference:

    https://docs.microsoft.com/en-us/sharepoint/understanding-permission-levels 

     

    Best regards,

    Mabel

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,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow