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 / Make a column auto upd...
Power Automate
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?

 

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    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!

  • v-bacao-msft Profile Picture
    on at

    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,

  • Atronin Profile Picture
    4 on at

    @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

  • Atronin Profile Picture
    4 on at

     

    @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

     

     

  • v-bacao-msft Profile Picture
    on at

    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,

  • Community Power Platform Member Profile Picture
    on at

    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 

     

     

  • jldodge Profile Picture
    4 on at

    How would this work for a nested structure?

     

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

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard