Skip to main content

Notifications

Community site session details

Community site session details

Session Id : W2fDXcdlBkBji/jrW3UZG1
Power Automate - Building Flows
Unanswered

Parent Folder Path

Like (0) ShareShare
ReportReport
Posted on 9 Oct 2024 19:37:24 by 6
Hello Everyone!
 
  Hoping you guys can provide some guidance.  I'd like to build a flow that captures when a file/folder it created or modified within sharepoint, then writes some information (modified datetime, file name, ect...) to a doc in the parent folder.  I can get it working to write the information into doc within the same folder of the modified document, but not the parent folder.  Example below is similar layout within sharepoint and where I'd like to have the information doc written do.  Keep in mind there could be 0 to 100 subfolders, the subfolders varies.
 
  • Documents (folder)
    • Site (folder)
      • Site (folder)
        • Plan A (folder) ->Write update doc here if any new/modified files/folder are made anywhere under Plan A
          • file 1
          • file 2
        • Plan B (folder)->Write update doc here if any new/modified files/folder are made anywhere under Plan B
          • Sub 1 (folder)
            • file 1
          • Sub 2 (folder)
            • file 1
            • file 2
            • file 3
          • file 1
        • Plan C ->Write update doc here if any new/modified files/folder are made anywhere under Plan C
          • Sub 1 (folder)
            • file 1
        • Plan D ->Write update doc here if any new/modified files/folder are made anywhere under Plan D
          • Sub 1 (folder)
            • file 1
            • file 2
          • Sub 2 folder)
            • file 1
          • Sub 3 (folder)
            • file 1
          • Sub 4 (folder)
            • file 1
            • file 2
            • file 3
            • file 4
          • file 1
So far the flows I'm using are:
-- When a file is created or modified (properties only)
-- Create File
 
Thank you in advance!
  • abc 123 Profile Picture
    784 Super User 2025 Season 1 on 09 Oct 2024 at 22:27:09
    Parent Folder Path
    Welcome to the greatest raging debate to hit the internet, well... before that singer started dating that football player, anyway. 
     
    MetaData vs Folders.
    Why are you using folders, and not metadata? (Security is a perfectly sound answer, and about the only one that makes sense.)
     
    Anyway, there's a bunch of http calls/Actions you can make to obtain the folder information. 
     
    Try all of these:

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started