Check if Folder exists

How to check if a folder exists in a SharePoint Online library using a Power Automate flow. The response of the action will be either true or false (boolean value).

URI

Headers

Body

Not applicable

Screenshot with example

Sample data
Site Address – https://contoso.sharepoint.com/sites/PowerUsers
Path – /sites/PowerUsers/Project Folders/Example Folder

checkiffolderexists_example

Copy/paste example

Resources

FileFolderExtensions.FolderExists Method

That’s it, Happy testing!

You may also like...

2 Responses

  1. Robert Rennel says:

    I am testing your code above and I get the
    {
    “d”: {
    “Exists”: false
    }
    }
    Or
    {
    “d”: {
    “Exists”: true
    }
    }
    depending on if the folder exists or not.
    I am now trying to get that answer into a condition which has the possibilities yes or no.
    But whatever i do i never get the condition to run at true.
    I have tried to use compose but i don’t get any other answer. It’s like the condition argument don’t read true/false correct.

  2. thiago says:

    Thanks, this works perfectly

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.