I have a flow that removes files from a SharePoint library. It works fine as long as the file to be deleted exists. However, if the file has already been removed the Get file properties action fails. What's the best method for determining if the file to be deleted has been removed already and to skip the Get file properties action?
I've tried configuring an action after Get file properties to run after failure and this works okay but the Flow still reports as failed in the Flow Runs.
Thanks in advance for any help.
Solved! Go to Solution.
Use Scope action and add the Get File Properties inside it. Add another Scope action with the success or failure logic. In the Scope action settings you can Configure run after to say what should happen when the scope is successful or failed or skipped or timed out. Its basically like Try catch in the Power Automate. Try it and let me know.
Check out how to claim yours today!
Check out new user group experience and if you are a leader please create your group
Test your skills now with the Cloud Skill Challenge.