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 / Power automate flow - ...
Power Automate
Answered

Power automate flow - updating a metadata field on sharepoint with path and file combination

(0) ShareShare
ReportReport
Posted on by 23
I have a very simple question for building a flow but since I am new, I need a little help.

To explain my flow below, I manually want to trigger it, I want to get all the files' inside the sharepoint link. I filter for only .xlsx files and where a custom metadata field 'Category' is empty. 

 
 

Capture.PNG

Now, assuming there are two files with no category in the Path - Rev_WRR_India 2020 Month12.xlsx and Rev_WRR_India 2020 Month11.xlsx

Path: Shared Documents/Test/India/Revenue/WRR/

 

I want the Category field to be Rev|India|WRR|2020|Month11. Could someone please help me as I'm stuck with creating this format value for the category field and updating the file properties? 

 

I'm not able to get the folder path inside the apply to each. If there is an easier way, please feel free to mention the same

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @shravanvijay 

     

    If you can get the filename 'Rev_WRR_India 2020 Month12.xlsx' then use the split expression delimiter as '.' (dot). Next use the First expression to get 'Rev_WRR_India 2020 Month12". Next you could use the replace expression for underscore to replace with | and space to replace the same.

  • shravanvijay Profile Picture
    23 on at

    hi @abm thank you so much for the response. How do I get the file name inside the apply to each?

     

    Also, I want to get the country and 'WRR' from the folder path though and I'm not able to get the path. I get null when I try this.

     

    Untitled.png

  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @shravanvijay 

     

    Use the Filename property from action step Get File Properties.

     

    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

Season of Sharing Community Challenge Launch!

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

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 411

#3
David_MA Profile Picture

David_MA 337 Super User 2026 Season 1

Last 30 days Overall leaderboard