
Hi, I want to create a flow such that if someone goes in and modifies a file, an approval gets sent out to the manager. If the manager approves, the file should be overwritten with the modification. Otherwise, the modification should not take place and the file should be restored to its previous state prior to modification. This is the flow I set up. However it is not working. I'm getting an error. I need the flow to work for both editing a file in the share point folder, and adding a new one. Either case, the manager needs to approve the new file entering or any modifications to existing files.
The error that I'm getting is that someone is inside the file. So its locked out. So the check out is failing. My logic was that, if a file is modified, its checked out, sent to the manager, if she approves its checked in, otherwise discard the checkout. Not sure if this is the right thinking. I'm new to Power Automate, just started.
Can someone please help.