Hello,
I have a Sharepoint site with a document library with checkin/checkout on but no approval required.
I also have a flow in Power Automate that sends a notification each time a new document is added or a document is edited. The trigger is "When a file is created or modified" and then I check if the document is checked out or not:
- If checked out = true -> does nothing
- If checked out = false -> sends the notification
This flow works well but a few days ago we had a use case where the flow sent a notification that was not supposed to be sent:
- A user checked out a file, made some changes but then, instead of checkin the file, he discarded the checkout;
- The file remain unchanged as it was supposed to be;
- The flow was triggered but because checked out was false it sent the notification.
How can I prevent this without making the approval required?
Thanks in advance,
Duarte