Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Make a column auto update by Parent Folder Value

(0) ShareShare
ReportReport
Posted on by 4

I am setting up a new Document Library to organize several different types of Documents. I have a Folder View and a Metadata view. I am using a column named "Section" to sort the metadata view. I want to automate the Section column value based off of the parent folder name of the file.

I understand that this can be done in this way. But I want it to be dynamic and adjust to when new Folders and files are created to automatically change the "Section" column.

 

2019-05-31_9-41-29.png

 

Currently the Section column is not tied to any lists, I created the column in the settings like this:

 

2019-05-31_9-43-42.png

 

I am hoping to using Flows, but when digging I cannot seem to find the value for that type of column, only columns in lists.

 

What is the best way for me to accomplish this?

 

  • jldodge Profile Picture
    4 on at
    Re: Make a column auto update by Parent Folder Value

    How would this work for a nested structure?

     

    Is there a way to extract subfolder name to metadata too?

  • Community Power Platform Member Profile Picture
    on at
    neRe: Make a column auto update by Parent Folder Value

    Hello, This is really elegant. It worked for me.

     

    Although I wondering if you would be able to help me with something. 

     

    I would like to make your automated flow a manually triggered flow (so that I don't have to modify the file).

     

    Is there a way?

     

    Cheers,

     

    George 

     

     

  • v-bacao-msft Profile Picture
    on at
    Re: Make a column auto update by Parent Folder Value

    Hi @Atronin ,

     

    Thank for your reply.

    Please try to update the connection or recreate a similar Flow.

    I did a test on my side. If there is a similar Column in the Library, these columns will be displayed in the Update file properties action.

     

    Best Regards,

  • Atronin Profile Picture
    4 on at
    Re: Make a column auto update by Parent Folder Value

     

    @v-bacao-msft 

     

    Ok I reviewed your suggestion and I thnk this might work, however I do not see Title or section in my choices below.  Can you help make them appear?

     

    2019-06-03_16-11-15.png

     

     

  • Atronin Profile Picture
    4 on at
    Re: Make a column auto update by Parent Folder Value

    @yashag2255 

     

    I am using the Section Column to show a metadata view by file, the folders do not require it.

     

    I was trying this out but I do not get the same options you do in the last part of the flow

     

    2019-06-03_10-25-10.png

  • v-bacao-msft Profile Picture
    on at
    Re: Make a column auto update by Parent Folder Value

    Hi @Atronin ,

     

    Could you share a screenshot of the Flow configuration?

    If you want to get Parent Folder Name, you could consider using the following method to get Parent Folder Name.

    Expression reference:

    split(triggerBody()?['{Path}'],'/')[sub(length(split(triggerBody()?['{Path}'],'/')),2)]

    Image reference:

    7.PNG

    Hope it helps.

     

    Best Regards,

  • yashag2255 Profile Picture
    24,503 Super User 2024 Season 1 on at
    Re: Make a column auto update by Parent Folder Value

    HI @Atronin , 

     

    Please refer to the screenshot below:

     

    Just one thing, are you defining a section column on the folders too? What I mean is on what criteria of the folder are you trying to implement the section feature. 

     

    Picture1.png

    Hope This Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. 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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1