web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Sharepoint Folder ...
Power Automate
Unanswered

Get Sharepoint Folder ID by Folder Title

(0) ShareShare
ReportReport
Posted on by 6

I am having trouble retrieving a sharepoint folder ID using only the Title on the folder . I need to use to Title because the name of the folder may be unknown at run time, but the Title will be constant. For example, we have a folder structure like Documents/Clients/Contacts. I need to grab the ID for a specific Contact folder using the Title associated with the Contact. I couldn't seem to make GetByTitle work for the sub-folders. Any help is greatly appreciated.

Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @rferraioli 

    You can use the REST API to do that

    SudeepGhatakNZ_0-1712117454380.png

     

    SudeepGhatakNZ_1-1712117492259.png

     

  • rferraioli Profile Picture
    6 on at

    @SudeepGhatakNZ Thanks for your response! I'm new to power automate. My objective is to determine if a folder exists by its title. I am using the below, but this only works for me using the name and not title. I tried your suggestion but I could not get it work at the sub-folder level. Appreciate your help!

    rferraioli_0-1712148353893.png

    rferraioli_1-1712148438106.png

     

  • rferraioli Profile Picture
    6 on at

    I also tried this. it runs but the result is always false.

    _api/web/GetFolderByServerRelativePath(decodedUrl='Documents/Workflow-Automation/Test')/Exists?$filter=(Title eq '123456789')

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Do you have folders with that name?

    _api/web/GetFolderByServerRelativePath(decodedUrl='Documents/Workflow-Automation/Test')/Exists

    What does that return?

     

    SudeepGhatakNZ_0-1712185073300.png

     

  • rferraioli Profile Picture
    6 on at

    @SudeepGhatakNZ Yes, that was the folder names for testing. I test to see if the folder exists. 

    image.png

     

     

    I can get the folder ID no problem using the above to get "Deal 123" in the below example. I'm looking to instead get the folder ID using the Title column by searching for 123. I can seem to find a way to use the Title column to retrieve the folder.

    rferraioli_1-1712187225792.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard