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 / Tag Image in a Specifi...
Power Automate
Suggested Answer

Tag Image in a Specific Sub-folder

(0) ShareShare
ReportReport
Posted on by
Hi all,

I've been tearing my hair out trying to figure out how to do this correctly. The problem I seem to be having is with searching subfolders.
If anyone could point me in the right direction it would be great.

CONTEXT / AIM:
Staff members upload photo evidence updates to our sharepoint on a weekly basis.
Due to the way the folders are structured, it's hard to find which sub-folders contain images, and which are just... empty.
  • I want to tag all photos of "completed jobs" so I can see them all at once, instead of having to dig through each individual sub-folder.
  • I have created a choice field so we can tag images with either "Underway" "Completed" or "Maintenance" - to match subfolders above.
  • The path to check would be as below - with "XXXXXX" changing for each sequential job number.
    Photos/2026/XXXXX/2_Completion
Example Folder Structure
Photos/[YEAR]/[JOB]
(eg.
Photos/2026/1001
Photos/2026/1002
Photos/2026/1003
and so on...)
 
Within each [JOB] folder is the following subfolder structure - this is where images are saved.
/1_Underway/
/2_Completion/
/3_Maintenance/

 
Choices:
 

PROPOSED FLOW:
  1. Scan the 2026 folder and all subfolder contents.
  2. Find any images (.jpg/.png/.heic) contained within a subfolder called "2_Completion".
    Note: Ignore any images under other subfolders.
  3. Update the Choice column as "Completed".
  4. End flow.
Categories:
I have the same question (0)
  • Suggested answer
    Ish S Profile Picture
    96 on at
     
    You can do something like this for a flow:
     
    The split function is used to determine if the current subfolder is equal to '2_Completion' by check the full path of the file and breaking that string into an array and then check the 4 index of that array.
     
    If these suggestions help resolve your issue. Please consider marking the answer as such.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard