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.
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
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
WarrenBelz
146,635
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional