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 / Update File Properties...
Power Automate
Answered

Update File Properties with Value from File Name

(0) ShareShare
ReportReport
Posted on by 1,387 Moderator

I am using "List folder" to get all files in a nested folder of a Library.

I am splitting up the values of the name field into multiple Compose actions. This will be used to update columns in the Library for the file.

 

"List Folder" does not give me an "Identifier" that I need to use "Update file properties". I only get:

 

* Id

* Name

* DisplayName

* Path

* LastModified

* Size

* IsFolder

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,136 Super User 2025 Season 2 on at

    Hi @IPC_ahaas 

     

    Try with Id dynamic content 🙂

     

    Nived_Nambiar_0-1710955698183.png

     

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • IPC_ahaas Profile Picture
    1,387 Moderator on at

    I have, the ID field it pulls isn't the ID as it pertains to the Library, so it doesn't work.

  • Nived_Nambiar Profile Picture
    18,136 Super User 2025 Season 2 on at

    Hi @IPC_ahaas 

     

    So you are trying to say that Library name can be changed ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • IPC_ahaas Profile Picture
    1,387 Moderator on at

    I'm saying the ID value generated from List Folder

    IPC_ahaas_0-1710956848207.png

     

    Does not correspond to the Identifier of the actual file.

  • Nived_Nambiar Profile Picture
    18,136 Super User 2025 Season 2 on at

    Hi @IPC_ahaas 

     

    You can try with get files (properties only) action for to get file identifier

    Nived_Nambiar_0-1710957905589.png

     

     

    And one thing is i observerd is Id and Identifierboth are different , Id always seems to be starting with %252 , while identifier does not start with %252. You are correct

     

    Thanks 

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • IPC_ahaas Profile Picture
    1,387 Moderator on at

    Get files (properties only) isn't working for me. It does not return the list of files.

     

    IPC_ahaas_0-1710960806911.png

     

    Output

    IPC_ahaas_1-1710960946822.png

     

     

  • Nived_Nambiar Profile Picture
    18,136 Super User 2025 Season 2 on at

    Hi @IPC_ahaas 

     

    Just wondering why you are not getting list of files from the folder 🤔 since files are present.

     

    But there is a workaround 🙂

     

    As i told you, the id present as output of List Folder action has %252f at beginning of Id, when i compared the id generated from list files (properties only) it does not have %252f at starting and it is working fine. 

     

    So another appraoch you can try is - 

    Nived_Nambiar_0-1711044136143.png

     

    Nived_Nambiar_1-1711044166271.png

     

    Inside the loop, use compose action to remove the first %252f using slice operation

    Nived_Nambiar_2-1711044219352.png

     

    Expression -  slice(items('Apply_to_each')?['Id'],5)

     

    Now I am using its output to get file metadata (for my usecase)

    Nived_Nambiar_3-1711044332020.png

     

    And it is working as expected.

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • IPC_ahaas Profile Picture
    1,387 Moderator on at

    While that process is working for me, the resulting "Identifier" is not. I used the output of the final Compose (which has the Split function) and this is what I get when I try to update a file referencing that:

     

    IPC_ahaas_0-1711055547485.png

     

     

     

  • Verified answer
    Nived_Nambiar Profile Picture
    18,136 Super User 2025 Season 2 on at

    Hi @IPC_ahaas 

     

    sorry i should have tried that earlier.

     

    Just tried with same for update file properties > it is throwing error.

    But i could see a worksaround for this.

     

    see below

     

    I have discussed the same approach > but just extending it

    Nived_Nambiar_0-1711214366433.png

     

    Expression used -  slice(items('Apply_to_each')?['Id'],5)

    Nived_Nambiar_1-1711214431681.png

     

    Next i will use itemid which is output get file metadata action in id field of update file properties

    Nived_Nambiar_2-1711214502544.png

     

    As you see above,I am using itemid attribute and then used to update a sample field named Status with value Submitted.

     

    It works for me 🙂

     

    Hope this idea helps !

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • IPC_ahaas Profile Picture
    1,387 Moderator on at

    That did the trick! Thank you!

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard