Notifications
Announcements
Filter array
Instead of relying on OData filter in the Get Files action (which can be limited), retrieve all folders first, then filter them in Power Automate.
Get Files
Steps:
Use Get Files (Properties only) action
Get Files (Properties only)
Filter query: FSObjType eq 1 (to get all folders)
FSObjType eq 1
Add Filter array action
From: output of Get Files
Condition: Use expression to filter folder names starting with your project string
Example condition expression:
startsWith(item()?['Title'], outputs('Compose_ProjectString'))
Where outputs('Compose_ProjectString') contains your project string like "Project - 1234 - ".
outputs('Compose_ProjectString')
"Project - 1234 - "
The Filter array will return matching folders.
Send an HTTP request to SharePoint
The SharePoint REST API supports startswith in $filter properly.
startswith
$filter
Example HTTP request:
Site Address: Your site URL
Method: GET
Uri:
_api/web/lists/getbytitle('Documents')/items?$filter=FSObjType eq 1 and startswith(Title,'Project - 1234 - ')
You can replace 'Documents' with your document library name. Then parse the JSON response to get your folder.
'Documents'
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 519 Super User 2025 Season 2
Tomac 296 Moderator
abm abm 232 Most Valuable Professional