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 / Set SharePoint field b...
Power Automate
Answered

Set SharePoint field based on filename in SharePoint library

(0) ShareShare
ReportReport
Posted on by 174

Hi Community

I have a list with +-3000 files in a SharePoint library.
The name of the files is a number.PNG or .JPG, so like 1.PNG 2.PNG 3.JPG
I have a new column PropID, which I would like to auto populate with the number before the extension. 
Name field is not selectable in sharepoint calculated field so I can not use that do to some string maniplutions. 
Any suggestions to get this done automated?

Thanks a lot!



Categories:
I have the same question (0)
  • Verified answer
    Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @BClouded 

     

    Here is an example:

    Jcook_2-1600978490024.png

     

    The Dynamic content 'Name' is the filename without the extension. 

     

    After I run the Flow:

    Jcook_3-1600978561367.png

     

     

  • BClouded Profile Picture
    174 on at

    Hi @Jcook 
    Thanks you for replying. And sorry for my delayed reply. 
    Unfortunately I can not use Name as dynamic content... I only see ID and PropID. 
    I was thinking to something like this
    Update PropID -> Left(Title,Len(Title)-4))
    Can you guide me once again please?

    Thanks!

    BClouded_0-1601221852227.png

     




  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hi @BClouded 

     

    Can you try clicking on Title column inside the Update file properties action, and see what dynamic content shows up.

     

    Can you run the flow and give me sample output of your Get files (Properties only) action

  • BClouded Profile Picture
    174 on at

    Well in fact it was part of a solution for migrating an old accdb to sharepoint and powerapps.
    Inside powerapps I could indeed see that, ThisItem.Name results in the name without extension. So I could do a lookup in the pictures database with that and each pictures is nicely showing for every record!

    Thank yo for your advice! Much appreciated!

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 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard