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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get folder and ...
Power Automate
Unanswered

How to get folder and sub-folders values during upload for Document library column

(0) ShareShare
ReportReport
Posted on by 9

hello All,

i am trying to get the folders value during upload using flow. i was able to get the sub-folder value but not the root folder value though. so i will have two levels of folders, root folder as agent name and sub-folder as project name. under one agent could have multiple projects to manage. usually users will upload files from inside project name folder. Lets say if have agent name 'Wavecrest' and project name 'South part' so when user upload any files from South park project folder i would like to get Wavecrest and south park value should be automatically inserted into the column. same should be applied for all others project name folders.

Capture.JPGCapture1.JPG

Categories:
I have the same question (0)
  • MM-07051709-0 Profile Picture
    9 on at

    Hello,

    i was able to replicate your flow but my column is not updating with the values from folder (Agent name) and sub-folder name (Project Name). all i am trying to get the folder values and automatically will update both columns.

     

    Thanks for your help.

  • MM-07051709-0 Profile Picture
    9 on at

    Hello, 

    Thanks for your reply. i will look at your steps and let you know. all i am trying to get the folder and sub-folder value when they upload from sub-folder. Lets say if i have root folder "Agent A" and sub-folder name "South park", so when user will upload file it will get both folder values and automatically display in the right pane that means into columns ( i have those site columns for Agent Name and Project Name). i hope its not confusing no more:)

    Thanks again. 

  • abm abm Profile Picture
    32,928 Most Valuable Professional on at

    Hi @mmahmud 

     

    Not sure what you meant by automatically inserted into the column? If you looking to get the folder names here are the steps.

     

    image.png

     

    Expressions I used above is as follows:

     

    split(outputs('Compose'),'/')
     
    outputs('Compose_2')[1]
     
    outputs('Compose_2')[2]
     
    Here are my test results:
    image.png
    Thanks

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 245 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 207 Most Valuable Professional

#3
trice602 Profile Picture

trice602 185 Super User 2025 Season 2

Last 30 days Overall leaderboard