Hello all!
I have a flow that is triggered when document or element has changed. It checks all the records in SharePoint and for those that have specific column changed it starts an approval action. Until the approval is not approved or rejected, flow is sending email notifications saying that you have approval pending with link to that approval.
The problem comes when flow was launched and approval already went off/was activated, but it wasn't approved nor rejected and meanwhile that record for which flow is launching approval is deleted from Sharepoint. Email notifications are not stopping so flow just runs infinitely even though this record doesn't exists anymore and link of its approval is not active anymore.
I wanted to add one more condition before sending email - something like "Check if this record is still in sharepoint / still exists" but I dont know how or if that's even possible.
If anyone have a solution or any other advice about it, I would love to hear it.